From 51841e7db75cbd99768eaeda467ea6b93b841203 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 16 May 2014 16:20:17 +0800 Subject: [PATCH] Roo/bootstrap/Button.js --- Roo/bootstrap/Button.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Roo/bootstrap/Button.js b/Roo/bootstrap/Button.js index a890663251..fda7977bf1 100644 --- a/Roo/bootstrap/Button.js +++ b/Roo/bootstrap/Button.js @@ -97,7 +97,7 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component, { } cfg.html = this.html || cfg.html; - if (this.toggle === true) { + if (this.toggle == true) { cfg={ tag: 'div', cls: 'slider-frame roo-button', @@ -302,9 +302,9 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component, { this.disabled = true; this.el.addClass('disabled'); }, - setDisabled : function(v) { + setActive : function(v) { - this[v ? 'disable' : 'enable'](); + this[v ? 'addClass' : 'removeClass']('active'); } -- 2.39.2