projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3099bd6
)
Roo/bootstrap/Button.js
author
Edward
<edward@roojs.com>
Wed, 8 Aug 2018 08:48:01 +0000
(16:48 +0800)
committer
Edward
<edward@roojs.com>
Wed, 8 Aug 2018 08:48:01 +0000
(16:48 +0800)
Roo/bootstrap/Button.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/Button.js
b/Roo/bootstrap/Button.js
index
3950538
..
726dd5c
100644
(file)
--- a/
Roo/bootstrap/Button.js
+++ b/
Roo/bootstrap/Button.js
@@
-309,7
+309,7
@@
Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component, {
}
if (this.pressed === true || this.pressed === false) {
- this.toggleActive();
+ this.toggleActive(
e
);
}
@@
-345,9
+345,10
@@
Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component, {
/**
* toggles the current active state
*/
- toggleActive : function()
+ toggleActive : function(
e
)
{
- this.setActive(this.pressed);
+ this.setActive(!this.pressed);
+ this.fireEvent('toggle', this, e, !this.pressed);
},
/**
* get the current active state