backport changeset 13857: fixed regression with default search field not being refocu...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 18 Aug 2009 05:35:20 +0000 (05:35 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 18 Aug 2009 05:35:20 +0000 (05:35 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_4_0@13861 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/cat/z3950.js
Open-ILS/xul/staff_client/server/cat/z3950.xul

index c980241..5ea8cd9 100644 (file)
@@ -431,7 +431,7 @@ cat.z3950.prototype = {
                var obj = this;
                var nl = document.getElementsByAttribute('mytype','search_class');
                for (var i = 0; i < nl.length; i++) { nl[i].value = ''; nl[i].setAttribute('value',''); }
-               //obj.focus(obj.controller.view.service_menu.value);
+               obj.focus();
        },
 
        'search_params' : {},
index e698bf1..b245e05 100644 (file)
@@ -70,7 +70,7 @@
                }
 
                function default_focus() {
-                       setTimeout( function() { try { document.getElementById("username").focus(); g.z3950.focus(g.service); } catch(E) { } }, 0 );
+                       setTimeout( function() { try { g.z3950.focus(); } catch(E) { alert(E); } }, 0 );
                }
 
        ]]>