From 34ddfcecef682109e79f378a56b2868d0328c5f7 Mon Sep 17 00:00:00 2001
From: Thomas Bruederli <thomas@roundcube.net>
Date: Sun, 09 Mar 2014 10:35:38 -0400
Subject: [PATCH] Fix input-button disabled state; add support for jquery UI buttons of type 'uibutton'
---
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 20bda2e..790a6b0 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -6119,7 +6119,10 @@
// 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');
}
}
};
--
Gitblit v1.9.1