From b0d46b1ab63e5f771a0dbb7400ca674194f456df Mon Sep 17 00:00:00 2001 From: alecpl Date: Mon, 30 Aug 2010 07:19:35 +0000 Subject: - lock_form(): fix hidden fields were disabled because of wrong type check - lock_form(): fix initially disabled fields shouldn't be enabled on unlock --- program/js/app.js | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/program/js/app.js b/program/js/app.js index 97c5791f7..5385c4936 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -5145,19 +5145,28 @@ function rcube_webmail() } }; - // set all fields of a form disabled + // disable/enable all fields of a form this.lock_form = function(form, lock) { if (!form || !form.elements) return; - var type; - for (var n=0, len=form.elements.length; n