projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b80199
)
Roo/bootstrap/Menu.js
author
Edward
<edward@roojs.com>
Mon, 30 Mar 2015 03:32:47 +0000
(11:32 +0800)
committer
Edward
<edward@roojs.com>
Mon, 30 Mar 2015 03:32:47 +0000
(11:32 +0800)
Roo/bootstrap/Menu.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/Menu.js
b/Roo/bootstrap/Menu.js
index
ebd751d
..
0947d87
100644
(file)
--- a/
Roo/bootstrap/Menu.js
+++ b/
Roo/bootstrap/Menu.js
@@
-157,8
+157,7
@@
Roo.extend(Roo.bootstrap.Menu, Roo.bootstrap.Component, {
onClick : function(e){
Roo.log("menu.onClick");
var t = this.findTargetItem(e);
- Roo.log(t);
- if(!t){
+ if(!t || t.isContainer){
return;
}
Roo.log(e);
@@
-184,10
+183,7
@@
Roo.extend(Roo.bootstrap.Menu, Roo.bootstrap.Component, {
this.fireEvent("click", this, t, e);
- if(!t.isContainer){
- this.hide();
- }
-
+ this.hide();
},
onMouseOver : function(e){
var t = this.findTargetItem(e);