projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4525f2
)
Roo/bootstrap/menu/Menu.js
author
Edward
<edward@roojs.com>
Fri, 5 Dec 2014 04:06:43 +0000
(12:06 +0800)
committer
Edward
<edward@roojs.com>
Fri, 5 Dec 2014 04:06:43 +0000
(12:06 +0800)
Roo/bootstrap/menu/Menu.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/menu/Menu.js
b/Roo/bootstrap/menu/Menu.js
index
ece4881
..
e8f4192
100644
(file)
--- a/
Roo/bootstrap/menu/Menu.js
+++ b/
Roo/bootstrap/menu/Menu.js
@@
-78,6
+78,19
@@
Roo.extend(Roo.bootstrap.menu.Menu, Roo.bootstrap.Component, {
getAutoCreate : function()
{
+ var text = [
+ {
+ tag : 'i',
+ cls : 'fa fa-search'
+ },
+ {
+ tag : 'span',
+ cls : 'roo-button-text',
+ html : this.html
+ }
+ ],
+
+
var cfg = {
tag : 'div',
cls : 'btn-group',
@@
-85,12
+98,7
@@
Roo.extend(Roo.bootstrap.menu.Menu, Roo.bootstrap.Component, {
{
tag : 'button',
cls : 'dropdown-button btn btn-' + this.weight,
- cn : [
- {
- tag : 'span',
- html : this.html
- }
- ]
+ cn : text
},
{
tag : 'button',