projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a72594
)
Roo/bootstrap/Button.js
author
Edward
<edward@roojs.com>
Mon, 31 Mar 2014 10:19:37 +0000
(18:19 +0800)
committer
Edward
<edward@roojs.com>
Mon, 31 Mar 2014 10:19:37 +0000
(18:19 +0800)
Roo/bootstrap/Button.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/Button.js
b/Roo/bootstrap/Button.js
index
99dd052
..
f219263
100644
(file)
--- a/
Roo/bootstrap/Button.js
+++ b/
Roo/bootstrap/Button.js
@@
-113,6
+113,26
@@
Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component, {
return cfg;
}
+ if (this.badge) {
+ cfg.html += ' ';
+
+ cfg.tag = 'a';
+
+ cfg.cls='btn roo-button';
+
+ cfg.href=this.href;
+
+ cfg.cn = [
+ cfg.html,
+ {
+ tag: 'span',
+ cls: 'badge',
+ html: this.badge
+ }
+ ];
+
+ cfg.html='';
+ }
if (this.theme==='default') {
cfg.cls = 'btn roo-button';