##// END OF EJS Templates
Unselect issues when clicking outside of the list....
Jean-Philippe Lang -
r3430:69769e1dfde5
parent child
Show More
@@ -79,11 +79,15 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 this.unselectAll();
84 } else {
85 if (Element.hasClassName(t, 'disabled') || Element.hasClassName(t, 'submenu')) {
83 Event.stop(e);
86 Event.stop(e);
84 }
87 }
85 }
88 }
86 }
89 }
90 }
87 else{
91 else{
88 this.RightClick(e);
92 this.RightClick(e);
89 }
93 }
General Comments 0
You need to be logged in to leave comments. Login now