diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-03-04 19:09:14 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-03-04 19:09:14 +0000 |
commit | 69769e1dfde5194edda2b8afafc7bbfc5ece247e (patch) | |
tree | 005fae5ef06170c6d1892a04e13ab17aa27e0df5 /public/javascripts/context_menu.js | |
parent | e8bc0b298007fad76fbcaa26bd91faea1ef23c9e (diff) | |
download | redmine-69769e1dfde5194edda2b8afafc7bbfc5ece247e.tar.gz redmine-69769e1dfde5194edda2b8afafc7bbfc5ece247e.zip |
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
Diffstat (limited to 'public/javascripts/context_menu.js')
-rw-r--r-- | public/javascripts/context_menu.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/public/javascripts/context_menu.js b/public/javascripts/context_menu.js index 04b65798e..dc18e0af1 100644 --- a/public/javascripts/context_menu.js +++ b/public/javascripts/context_menu.js @@ -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); + } } } } |