From 9d196ce37932bbd5a8ad86e879ca36c1dbca0a90 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 16 May 2014 16:13:14 +0800 Subject: [PATCH] Roo/bootstrap/Button.js --- Roo/bootstrap/Button.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Roo/bootstrap/Button.js b/Roo/bootstrap/Button.js index 84273b63ba..a890663251 100644 --- a/Roo/bootstrap/Button.js +++ b/Roo/bootstrap/Button.js @@ -302,8 +302,9 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component, { this.disabled = true; this.el.addClass('disabled'); }, - toggle : function(v) { - this[v ? 'enable' : 'disable'](); + setDisabled : function(v) { + + this[v ? 'disable' : 'enable'](); } -- 2.39.2