projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8b7458
)
Roo/bootstrap/menu/Item.js
author
Edward
<edward@roojs.com>
Fri, 5 Dec 2014 03:23:15 +0000
(11:23 +0800)
committer
Edward
<edward@roojs.com>
Fri, 5 Dec 2014 03:23:15 +0000
(11:23 +0800)
Roo/bootstrap/menu/Item.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/menu/Item.js
b/Roo/bootstrap/menu/Item.js
index
d39d58e
..
3b27a13
100644
(file)
--- a/
Roo/bootstrap/menu/Item.js
+++ b/
Roo/bootstrap/menu/Item.js
@@
-77,7
+77,13
@@
Roo.extend(Roo.bootstrap.menu.Item, Roo.bootstrap.Component, {
{
this.el.on('mouseover', this.onMouseOver, this);
this.el.on('mouseout', this.onMouseOut, this);
- this.el.on('click', this.onClick, this);
+
+ if(this.submenu){
+ this.el.select('.dropdown-submenu > a', true).first().on('click', this.onClick, this);
+ }else{
+ this.el.on('click', this.onClick, this);
+ }
+
},