summaryrefslogtreecommitdiff
path: root/program/js/app.js
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2014-03-09 15:35:38 +0100
committerThomas Bruederli <thomas@roundcube.net>2014-03-09 16:23:41 +0100
commit238c6a0f55daa218c9e6de148164fc85588fd887 (patch)
treea028608f4e6bb7086b04ab43455f8dff1aba77b3 /program/js/app.js
parent5ba53819cfd4ebfa25dd6a416b663c2c5748d8eb (diff)
Fix input-button disabled state; add support for jquery UI buttons of type 'uibutton'
Diffstat (limited to 'program/js/app.js')
-rw-r--r--program/js/app.js5
1 files changed, 4 insertions, 1 deletions
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');
}
}
};