diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-07-20 19:09:12 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-07-20 19:09:12 +0000 |
| commit | 2109fe0f4a9fcdfd9417548a373310ff8dbbb8da (patch) | |
| tree | 230ffe485ae82b9a1f46dc5cb7c27df4b099ecaa | |
| parent | b922e4adc4f8302edd52fdee5bf1068c48426539 (diff) | |
- Add check for inArray() input to prevent error in Firefox 5
git-svn-id: https://svn.roundcube.net/trunk@4946 208e9e7b-5314-0410-a742-e7e81cd9613c
| -rw-r--r-- | roundcubemail/program/js/app.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index 2987434f9..df14fc9d9 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/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; } }; |
