diff options
author | Thomas Bruederli <thomas@roundcube.net> | 2014-03-09 15:35:38 +0100 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2014-03-09 15:35:38 +0100 |
commit | 34ddfcecef682109e79f378a56b2868d0328c5f7 (patch) | |
tree | 386ff3868b1976e79decb6095ccf7844c4f83827 /program | |
parent | c42fc0fff683f8b27d213750d5b65a74a9ec5506 (diff) |
Fix input-button disabled state; add support for jquery UI buttons of type 'uibutton'
Diffstat (limited to 'program')
-rw-r--r-- | program/js/app.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/program/js/app.js b/program/js/app.js index 20bda2e32..790a6b076 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -6119,7 +6119,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'); } } }; |