mirror of
https://github.com/redmine/redmine.git
synced 2026-01-05 07:10:36 +01:00
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:
@@ -79,8 +79,12 @@ 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'))) {
|
||||
Event.stop(e);
|
||||
if (t == document || t == undefined) {
|
||||
this.unselectAll();
|
||||
} else {
|
||||
if (Element.hasClassName(t, 'disabled') || Element.hasClassName(t, 'submenu')) {
|
||||
Event.stop(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user