From 2109fe0f4a9fcdfd9417548a373310ff8dbbb8da Mon Sep 17 00:00:00 2001 From: alec Date: Wed, 20 Jul 2011 19:09:12 +0000 Subject: - 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 --- roundcubemail/program/js/app.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'roundcubemail') 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; } }; -- cgit v1.2.3