From 238c6a0f55daa218c9e6de148164fc85588fd887 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Sun, 9 Mar 2014 15:35:38 +0100 Subject: Fix input-button disabled state; add support for jquery UI buttons of type 'uibutton' --- program/js/app.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'program') diff --git a/program/js/app.js b/program/js/app.js index 28a1b38ab..fa48408ee 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -6113,7 +6113,10 @@ function rcube_webmail() // disable/enable input buttons if (button.type == 'input') { button.status = state; - obj.disabled = !state; + obj.disabled = state == 'pas'; + } + else if (button.type == 'uibutton') { + $(obj).button('option', 'disabled', state == 'pas'); } } }; -- cgit v1.2.3