projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca5b099
)
Roo/bootstrap/MenuItem.js
author
Alan Knowles
<alan@roojs.com>
Mon, 25 Aug 2014 07:34:09 +0000
(15:34 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 25 Aug 2014 07:34:09 +0000
(15:34 +0800)
Roo/bootstrap/MenuItem.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/MenuItem.js
b/Roo/bootstrap/MenuItem.js
index
347d33a
..
eebd25f
100644
(file)
--- a/
Roo/bootstrap/MenuItem.js
+++ b/
Roo/bootstrap/MenuItem.js
@@
-42,19
+42,20
@@
Roo.extend(Roo.bootstrap.MenuItem, Roo.bootstrap.Component, {
getAutoCreate : function(){
var cfg= {
- tag: 'li',
- cls: 'dropdown-menu-item',
- cn: [
- {
- tag : 'a',
- href : '#',
- html : 'Link'
- }
- ]
+
tag: 'li',
+
cls: 'dropdown-menu-item',
+
cn: [
+
{
+
tag : 'a',
+
href : '#',
+
html : 'Link'
+
}
+
]
};
if (this.parent().type == 'treeview') {
cfg.cls = 'treeview-menu';
}
+
cfg.cn[0].href = this.href || cfg.cn[0].href ;
cfg.cn[0].html = this.html || cfg.cn[0].html ;
return cfg;