OSDN Git Service
(root)
/
redminele
/
redmine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8bc0b2
)
Unselect issues when clicking outside of the list.
author
Jean-Philippe Lang
<jp_lang@yahoo.fr>
Thu, 4 Mar 2010 19:09:14 +0000
(19:09 +0000)
committer
Jean-Philippe Lang
<jp_lang@yahoo.fr>
Thu, 4 Mar 2010 19:09:14 +0000
(19:09 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3544
e93f8b46
-1217-0410-a6f0-
8f06a7374b81
public/javascripts/context_menu.js
patch
|
blob
|
history
diff --git
a/public/javascripts/context_menu.js
b/public/javascripts/context_menu.js
index
04b6579
..
dc18e0a
100644
(file)
--- 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);
+ }
}
}
}