patch from Leb. to repair format selection on home page in IE
authorberick <berick@esilibrary.com>
Sat, 26 Mar 2011 15:37:47 +0000 (11:37 -0400)
committerberick <berick@esilibrary.com>
Sat, 26 Mar 2011 15:37:47 +0000 (11:37 -0400)
Open-ILS/web/opac/skin/kcls/js/search_bar.js

index a4ba7c2..284e4b5 100644 (file)
@@ -67,7 +67,9 @@ function searchBarInit() {
 
 function searchBarSubmit(isFilterSort) {
        var text = G.ui.searchbar.text.value;
-       var facet_text = isFrontPage ? '' : G.ui.searchbar.facets.value;
+    var facet_text;
+    try { facet_text = G.ui.searchbar.facets.value || ''; }
+    catch(E) { facet_text = ''; }
        clearSearchParams();
        if(!text || text == "" || text == "Search Keyword") return;
        var d = (newSearchDepth != null) ?  newSearchDepth : getSearchDepth();