From 16b85bda32d687091c9bc95b3f9e124ae597f188 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Wed, 24 Dec 2008 13:32:59 +0000 Subject: [PATCH] Merged r2178 from trunk. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/0.8-stable@2179 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- public/javascripts/context_menu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/javascripts/context_menu.js b/public/javascripts/context_menu.js index 20f0fc5a7..955650d6a 100644 --- a/public/javascripts/context_menu.js +++ b/public/javascripts/context_menu.js @@ -48,7 +48,7 @@ ContextMenu.prototype = { if (window.opera && e.altKey) { return; } if (Event.isLeftClick(e) || (navigator.appVersion.match(/\bMSIE\b/))) { var tr = Event.findElement(e, 'tr'); - if (tr!=document && tr.hasClassName('hascontextmenu')) { + if (tr!=null && tr!=document && tr.hasClassName('hascontextmenu')) { // a row was clicked, check if the click was on checkbox var box = Event.findElement(e, 'input'); if (box!=document && box!=undefined) {