From: Alan Knowles Date: Fri, 16 May 2014 08:30:34 +0000 (+0800) Subject: Roo/bootstrap/Button.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=cf7cb80ae69ca5d6be00c987d04fbe01454473f0 Roo/bootstrap/Button.js --- diff --git a/Roo/bootstrap/Button.js b/Roo/bootstrap/Button.js index 47f432ac23..5fce2500a4 100644 --- a/Roo/bootstrap/Button.js +++ b/Roo/bootstrap/Button.js @@ -292,11 +292,19 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component, { this.fireEvent('click', this, e); }, + + /** + * Enables this button + */ enable : function() { this.disabled = false; this.el.removeClass('disabled'); }, + + /** + * Disable this button + */ disable : function() { this.disabled = true;