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:
Jean-Philippe Lang 2010-03-04 19:09:14 +00:00
parent e8bc0b2980
commit 69769e1dfd
1 changed files with 6 additions and 2 deletions

View File

@ -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);
}