prevent unnecessary exceptions
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 25 Aug 2006 20:18:36 +0000 (20:18 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 25 Aug 2006 20:18:36 +0000 (20:18 +0000)
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

index 1780bfc..9f15a71 100644 (file)
@@ -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 =