summaryrefslogtreecommitdiff
path: root/program/js
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-07-20 19:09:12 +0000
committeralecpl <alec@alec.pl>2011-07-20 19:09:12 +0000
commit070bc8302e00f766076b4aaabfd2de4a0f2da66f (patch)
treefcdf2adbba13905185ef10ea94950dac30e127bc /program/js
parentc9cfd6d4bfbd8f676542ed9fbd9bdbcaede001ba (diff)
- Add check for inArray() input to prevent error in Firefox 5
Diffstat (limited to 'program/js')
-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;
}
};