From: Alan Knowles Date: Fri, 16 May 2014 08:13:14 +0000 (+0800) Subject: Roo/bootstrap/Button.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=9d196ce37932bbd5a8ad86e879ca36c1dbca0a90 Roo/bootstrap/Button.js --- 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'](); }