Skip to content
Snippets Groups Projects
Commit d775aee2 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang
Browse files

Fixes a JS error on context_menu with IE (#2390).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2178 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 5c97a83a
No related merge requests found
...@@ -48,7 +48,7 @@ ContextMenu.prototype = { ...@@ -48,7 +48,7 @@ ContextMenu.prototype = {
if (window.opera && e.altKey) { return; } if (window.opera && e.altKey) { return; }
if (Event.isLeftClick(e) || (navigator.appVersion.match(/\bMSIE\b/))) { if (Event.isLeftClick(e) || (navigator.appVersion.match(/\bMSIE\b/))) {
var tr = Event.findElement(e, 'tr'); 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 // a row was clicked, check if the click was on checkbox
var box = Event.findElement(e, 'input'); var box = Event.findElement(e, 'input');
if (box!=document && box!=undefined) { if (box!=document && box!=undefined) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment