[open-ils-commits] r13859 - branches/rel_1_6_0/Open-ILS/xul/staff_client/server/cat (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Aug 18 01:34:49 EDT 2009
Author: phasefx
Date: 2009-08-18 01:34:45 -0400 (Tue, 18 Aug 2009)
New Revision: 13859
Modified:
branches/rel_1_6_0/Open-ILS/xul/staff_client/server/cat/z3950.js
branches/rel_1_6_0/Open-ILS/xul/staff_client/server/cat/z3950.xul
Log:
backport changeset 13857: 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: branches/rel_1_6_0/Open-ILS/xul/staff_client/server/cat/z3950.js
===================================================================
--- branches/rel_1_6_0/Open-ILS/xul/staff_client/server/cat/z3950.js 2009-08-18 05:34:26 UTC (rev 13858)
+++ branches/rel_1_6_0/Open-ILS/xul/staff_client/server/cat/z3950.js 2009-08-18 05:34:45 UTC (rev 13859)
@@ -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: branches/rel_1_6_0/Open-ILS/xul/staff_client/server/cat/z3950.xul
===================================================================
--- branches/rel_1_6_0/Open-ILS/xul/staff_client/server/cat/z3950.xul 2009-08-18 05:34:26 UTC (rev 13858)
+++ branches/rel_1_6_0/Open-ILS/xul/staff_client/server/cat/z3950.xul 2009-08-18 05:34:45 UTC (rev 13859)
@@ -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