Unselect issues when clicking outside of the list.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3544 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
e8bc0b2980
commit
69769e1dfd
|
@ -79,11 +79,15 @@ ContextMenu.prototype = {
|
|||
} else {
|
||||
// click is outside the rows
|
||||
var t = Event.findElement(e, 'a');
|
||||
if ((t != document) && (Element.hasClassName(t, 'disabled') || Element.hasClassName(t, 'submenu'))) {
|
||||
if (t == document || t == undefined) {
|
||||
this.unselectAll();
|
||||
} else {
|
||||
if (Element.hasClassName(t, 'disabled') || Element.hasClassName(t, 'submenu')) {
|
||||
Event.stop(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else{
|
||||
this.RightClick(e);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue