projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a3c896d
)
Roo/bootstrap/Button.js
author
benny
<benny@roojs.com>
Fri, 20 Jul 2018 08:08:09 +0000
(16:08 +0800)
committer
benny
<benny@roojs.com>
Fri, 20 Jul 2018 08:08:09 +0000
(16:08 +0800)
Roo/bootstrap/Button.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/Button.js
b/Roo/bootstrap/Button.js
index
d44f52b
..
6dcdf58
100644
(file)
--- a/
Roo/bootstrap/Button.js
+++ b/
Roo/bootstrap/Button.js
@@
-50,14
+50,14
@@
Roo.bootstrap.Button = function(config){
/**
* @event click
* When a butotn is pressed
/**
* @event click
* When a butotn is pressed
- * @param {Roo.bootstrap.Button}
this
+ * @param {Roo.bootstrap.Button}
btn
* @param {Roo.EventObject} e
*/
"click" : true,
/**
* @event toggle
* After the button has been toggles
* @param {Roo.EventObject} e
*/
"click" : true,
/**
* @event toggle
* After the button has been toggles
- * @param {Roo.bootstrap.Button}
this
+ * @param {Roo.bootstrap.Button}
btn
* @param {Roo.EventObject} e
* @param {boolean} pressed (also available as button.pressed)
*/
* @param {Roo.EventObject} e
* @param {boolean} pressed (also available as button.pressed)
*/
@@
-342,6
+342,7
@@
Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component, {
setActive : function(v) {
this.el[v ? 'addClass' : 'removeClass']('active');
setActive : function(v) {
this.el[v ? 'addClass' : 'removeClass']('active');
+ this.pressed = v;
},
/**
* toggles the current active state
},
/**
* toggles the current active state