@@ -79,8 +79,12 ContextMenu.prototype = { | |||||
79 | } else { |
|
79 | } else { | |
80 | // click is outside the rows |
|
80 | // click is outside the rows | |
81 | var t = Event.findElement(e, 'a'); |
|
81 | var t = Event.findElement(e, 'a'); | |
82 | if ((t != document) && (Element.hasClassName(t, 'disabled') || Element.hasClassName(t, 'submenu'))) { |
|
82 | if (t == document || t == undefined) { | |
83 | Event.stop(e); |
|
83 | this.unselectAll(); | |
|
84 | } else { | |||
|
85 | if (Element.hasClassName(t, 'disabled') || Element.hasClassName(t, 'submenu')) { | |||
|
86 | Event.stop(e); | |||
|
87 | } | |||
84 | } |
|
88 | } | |
85 | } |
|
89 | } | |
86 | } |
|
90 | } |
General Comments 0
You need to be logged in to leave comments.
Login now