diff options
author | alecpl <alec@alec.pl> | 2011-07-20 19:09:12 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2011-07-20 19:09:12 +0000 |
commit | 070bc8302e00f766076b4aaabfd2de4a0f2da66f (patch) | |
tree | fcdf2adbba13905185ef10ea94950dac30e127bc /program/js/app.js | |
parent | c9cfd6d4bfbd8f676542ed9fbd9bdbcaede001ba (diff) |
- Add check for inArray() input to prevent error in Firefox 5
Diffstat (limited to 'program/js/app.js')
-rw-r--r-- | program/js/app.js | 3 |
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; } }; |