From ff4b8e4b7c883e6c7494e721a9f787e9de9236d0 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 7 Feb 2014 15:45:40 +0800 Subject: [PATCH] Roo/bootstrap/Button.js --- Roo/bootstrap/Button.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Roo/bootstrap/Button.js b/Roo/bootstrap/Button.js index 214c791cd4..71a33878c8 100644 --- a/Roo/bootstrap/Button.js +++ b/Roo/bootstrap/Button.js @@ -67,6 +67,7 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component, { var cfg = { tag : 'button', + cls : 'roo-button', html: 'hello' }; @@ -81,7 +82,7 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component, { if (this.toggle===true) { cfg={ tag: 'div', - cls: 'slider-frame', + cls: 'slider-frame roo-button', cn: [ { tag: 'span', @@ -112,7 +113,7 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component, { if (true) { if (this.theme==='default') { - cfg.cls = 'btn'; + cfg.cls = 'btn roo-button'; if (this.parentType != 'Navbar') { this.weight = this.weight.length ? this.weight : 'default'; @@ -222,6 +223,7 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component, { // Roo.log('init events?'); // Roo.log(this.el.dom); + this.el.on('click', this.onClick, this); this.el.on('click', this.onClick, this); //this.el.select('button',true).on('click', this.onClick, this); -- 2.39.2