From 8787158b67d8dd6a015318f4218628242469d723 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 16 May 2014 16:12:04 +0800 Subject: [PATCH] Roo/bootstrap/Button.js --- Roo/bootstrap/Button.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.39.2