summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--program/js/app.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 2987434f9..df14fc9d9 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -5863,11 +5863,10 @@ function rcube_webmail()
if (elm.type == 'hidden')
continue;
-
// remember which elem was disabled before lock
if (lock && elm.disabled)
this.disabled_form_elements.push(elm);
- else if (lock || $.inArray(elm, this.disabled_form_elements)<0)
+ else if (lock || (this.disabled_form_elements && $.inArray(elm, this.disabled_form_elements)<0))
elm.disabled = lock;
}
};