[open-ils-commits] r13861 - branches/rel_1_4_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:35:24 EDT 2009


Author: phasefx
Date: 2009-08-18 01:35:20 -0400 (Tue, 18 Aug 2009)
New Revision: 13861

Modified:
   branches/rel_1_4_0/Open-ILS/xul/staff_client/server/cat/z3950.js
   branches/rel_1_4_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_4_0/Open-ILS/xul/staff_client/server/cat/z3950.js
===================================================================
--- branches/rel_1_4_0/Open-ILS/xul/staff_client/server/cat/z3950.js	2009-08-18 05:35:04 UTC (rev 13860)
+++ branches/rel_1_4_0/Open-ILS/xul/staff_client/server/cat/z3950.js	2009-08-18 05:35:20 UTC (rev 13861)
@@ -431,7 +431,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_4_0/Open-ILS/xul/staff_client/server/cat/z3950.xul
===================================================================
--- branches/rel_1_4_0/Open-ILS/xul/staff_client/server/cat/z3950.xul	2009-08-18 05:35:04 UTC (rev 13860)
+++ branches/rel_1_4_0/Open-ILS/xul/staff_client/server/cat/z3950.xul	2009-08-18 05:35:20 UTC (rev 13861)
@@ -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