[open-ils-commits] r8182 - branches/rel_1_2/Open-ILS/xul/staff_client/server/admin

svn at svn.open-ils.org svn at svn.open-ils.org
Sun Dec 9 09:37:05 EST 2007


Author: erickson
Date: 2007-12-09 09:16:53 -0500 (Sun, 09 Dec 2007)
New Revision: 8182

Modified:
   branches/rel_1_2/Open-ILS/xul/staff_client/server/admin/copy_locations.js
Log:
forcing location names to be strings so toLowerCase will work

Modified: branches/rel_1_2/Open-ILS/xul/staff_client/server/admin/copy_locations.js
===================================================================
--- branches/rel_1_2/Open-ILS/xul/staff_client/server/admin/copy_locations.js	2007-12-09 05:04:34 UTC (rev 8181)
+++ branches/rel_1_2/Open-ILS/xul/staff_client/server/admin/copy_locations.js	2007-12-09 14:16:53 UTC (rev 8182)
@@ -83,6 +83,9 @@
 		rowTemplate = tbody.removeChild($('cl_row'));
 	removeChildren(tbody);
 
+    for(var i = 0; i < cls.length; i++) /* force stringify */
+        cls[i].name(new String(cls[i].name()));
+
 	cls = cls.sort( function(a,b) {
 			if( a.name().toLowerCase() > b.name().toLowerCase() ) return 1;
 			if( a.name().toLowerCase() < b.name().toLowerCase() ) return -1;



More information about the open-ils-commits mailing list