projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa38ec6
)
Roo/bootstrap/Button.js
author
Edward
<edward@roojs.com>
Thu, 17 Apr 2014 04:25:55 +0000
(12:25 +0800)
committer
Edward
<edward@roojs.com>
Thu, 17 Apr 2014 04:25:55 +0000
(12:25 +0800)
Roo/bootstrap/Button.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/Button.js
b/Roo/bootstrap/Button.js
index
35327b0
..
bec1d57
100644
(file)
--- a/
Roo/bootstrap/Button.js
+++ b/
Roo/bootstrap/Button.js
@@
-170,6
+170,10
@@
Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component, {
delete cfg.html;
+ }
+ else if (this.menu) {
+ cfg.cls += ' dropdown';
+ cfg.html = this.html + ' <span class="caret"></span>';
}
if (this.disabled) {
@@
-225,11
+229,6
@@
Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component, {
cfg.html='';
}
- if (this.menu) {
- cfg.cls += ' dropdown';
- cfg.html = cfg.html + ' <span class="caret"></span>';
- }
-
if (cfg.tag !== 'a' && this.href !== '') {
throw "Tag must be a to set href.";
} else if (this.href.length > 0) {