From: Alan Knowles Date: Fri, 16 May 2014 08:12:04 +0000 (+0800) Subject: Roo/bootstrap/Button.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=8787158b67d8dd6a015318f4218628242469d723 Roo/bootstrap/Button.js --- diff --git a/Roo/bootstrap/Button.js b/Roo/bootstrap/Button.js index 6a19e08089..84273b63ba 100644 --- a/Roo/bootstrap/Button.js +++ b/Roo/bootstrap/Button.js @@ -302,7 +302,11 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component, { this.disabled = true; this.el.addClass('disabled'); }, - + toggle : function(v) { + this[v ? 'enable' : 'disable'](); + + + } }); \ No newline at end of file