From 698a73eeecc76cc94edaef1a7b7005fdd9c91da5 Mon Sep 17 00:00:00 2001 From: erickson Date: Fri, 25 Aug 2006 20:18:36 +0000 Subject: [PATCH] prevent unnecessary exceptions git-svn-id: svn://svn.open-ils.org/ILS/trunk@5683 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/opac/skin/default/js/search_bar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = -- 2.43.2