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,8 +79,12 @@ ContextMenu.prototype = {
|
||||||
} else {
|
} else {
|
||||||
// click is outside the rows
|
// click is outside the rows
|
||||||
var t = Event.findElement(e, 'a');
|
var t = Event.findElement(e, 'a');
|
||||||
if ((t != document) && (Element.hasClassName(t, 'disabled') || Element.hasClassName(t, 'submenu'))) {
|
if (t == document || t == undefined) {
|
||||||
Event.stop(e);
|
this.unselectAll();
|
||||||
|
} else {
|
||||||
|
if (Element.hasClassName(t, 'disabled') || Element.hasClassName(t, 'submenu')) {
|
||||||
|
Event.stop(e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue