- Add check for inArray() input to prevent error in Firefox 5

release-0.6
alecpl 14 years ago
parent c9cfd6d4bf
commit 070bc8302e

@ -5863,11 +5863,10 @@ function rcube_webmail()
if (elm.type == 'hidden') if (elm.type == 'hidden')
continue; continue;
// remember which elem was disabled before lock // remember which elem was disabled before lock
if (lock && elm.disabled) if (lock && elm.disabled)
this.disabled_form_elements.push(elm); 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; elm.disabled = lock;
} }
}; };

Loading…
Cancel
Save