projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4e44529
)
Roo/bootstrap/Button.js
author
Edward
<edward@roojs.com>
Wed, 8 Aug 2018 08:47:11 +0000
(16:47 +0800)
committer
Edward
<edward@roojs.com>
Wed, 8 Aug 2018 08:47:11 +0000
(16:47 +0800)
Roo/bootstrap/Button.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/Button.js
b/Roo/bootstrap/Button.js
index
a4ea8e6
..
3950538
100644
(file)
--- a/
Roo/bootstrap/Button.js
+++ b/
Roo/bootstrap/Button.js
@@
-347,10
+347,7
@@
Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component, {
*/
toggleActive : function()
{
*/
toggleActive : function()
{
- var active = this.el.hasClass('active');
- this.setActive(!active);
-
-
+ this.setActive(this.pressed);
},
/**
* get the current active state
},
/**
* get the current active state