[open-ils-commits] r13857 - trunk/Open-ILS/xul/staff_client/server/cat (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Aug 18 01:32:41 EDT 2009
Author: phasefx
Date: 2009-08-18 01:32:37 -0400 (Tue, 18 Aug 2009)
New Revision: 13857
Modified:
trunk/Open-ILS/xul/staff_client/server/cat/z3950.js
trunk/Open-ILS/xul/staff_client/server/cat/z3950.xul
Log:
fixed regression with default search field not being refocused after using the Clear Form button. Also have the default field come into focus when the whole tab leaves focus and is later revisited.
Modified: trunk/Open-ILS/xul/staff_client/server/cat/z3950.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/z3950.js 2009-08-17 20:10:33 UTC (rev 13856)
+++ trunk/Open-ILS/xul/staff_client/server/cat/z3950.js 2009-08-18 05:32:37 UTC (rev 13857)
@@ -447,7 +447,7 @@
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' : {},
Modified: trunk/Open-ILS/xul/staff_client/server/cat/z3950.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/z3950.xul 2009-08-17 20:10:33 UTC (rev 13856)
+++ trunk/Open-ILS/xul/staff_client/server/cat/z3950.xul 2009-08-18 05:32:37 UTC (rev 13857)
@@ -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 );
}
]]>
More information about the open-ils-commits
mailing list