From: erickson Date: Fri, 25 Aug 2006 20:18:36 +0000 (+0000) Subject: prevent unnecessary exceptions X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=698a73eeecc76cc94edaef1a7b7005fdd9c91da5;p=Evergreen.git prevent unnecessary exceptions git-svn-id: svn://svn.open-ils.org/ILS/trunk@5683 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/opac/skin/default/js/search_bar.js b/Open-ILS/web/opac/skin/default/js/search_bar.js index 1780bfca75..9f15a716fd 100644 --- a/Open-ILS/web/opac/skin/default/js/search_bar.js +++ b/Open-ILS/web/opac/skin/default/js/search_bar.js @@ -19,7 +19,7 @@ function searchBarInit() { _ts = G.ui.searchbar.type_selector; _fs = G.ui.searchbar.form_selector; - G.ui.searchbar.text.focus(); + try{G.ui.searchbar.text.focus();}catch(e){} G.ui.searchbar.text.onkeydown = function(evt) {if(userPressedEnter(evt)) { searchBarSubmit(); } }; _ts.onkeydown =