@@ -48,7 +48,7 ContextMenu.prototype = { | |||||
48 | if (window.opera && e.altKey) { return; } |
|
48 | if (window.opera && e.altKey) { return; } | |
49 | if (Event.isLeftClick(e) || (navigator.appVersion.match(/\bMSIE\b/))) { |
|
49 | if (Event.isLeftClick(e) || (navigator.appVersion.match(/\bMSIE\b/))) { | |
50 | var tr = Event.findElement(e, 'tr'); |
|
50 | var tr = Event.findElement(e, 'tr'); | |
51 | if (tr!=document && tr.hasClassName('hascontextmenu')) { |
|
51 | if (tr!=null && tr!=document && tr.hasClassName('hascontextmenu')) { | |
52 | // a row was clicked, check if the click was on checkbox |
|
52 | // a row was clicked, check if the click was on checkbox | |
53 | var box = Event.findElement(e, 'input'); |
|
53 | var box = Event.findElement(e, 'input'); | |
54 | if (box!=document && box!=undefined) { |
|
54 | if (box!=document && box!=undefined) { |
General Comments 0
You need to be logged in to leave comments.
Login now