projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4657c4c
)
Roo/bootstrap/Button.js
author
Alan Knowles
<alan@roojs.com>
Fri, 7 Feb 2014 07:47:32 +0000
(15:47 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 7 Feb 2014 07:47:32 +0000
(15:47 +0800)
Roo/bootstrap/Button.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/Button.js
b/Roo/bootstrap/Button.js
index
b5b813f
..
fa7e149
100644
(file)
--- a/
Roo/bootstrap/Button.js
+++ b/
Roo/bootstrap/Button.js
@@
-223,9
+223,13
@@
Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component, {
initEvents: function() {
// Roo.log('init events?');
// Roo.log(this.el.dom);
+ if (this.el.hasClass('roo-button')) {
+ this.el.on('click', this.onClick, thi
+ } else {
+ this.el.select('.roo-button').on('click', this.onClick, this);
+ }
+
- this.el.on('click', this.onClick, this);
- this.el.on('click', this.onClick, this);
//this.el.select('button',true).on('click', this.onClick, this);