[open-ils-commits] r8183 -
trunk/Open-ILS/xul/staff_client/server/admin
svn at svn.open-ils.org
svn at svn.open-ils.org
Sun Dec 9 09:39:32 EST 2007
Author: erickson
Date: 2007-12-09 09:19:20 -0500 (Sun, 09 Dec 2007)
New Revision: 8183
Modified:
trunk/Open-ILS/xul/staff_client/server/admin/copy_locations.js
Log:
forcing location names to be strings so toLowerCase will work
Modified: trunk/Open-ILS/xul/staff_client/server/admin/copy_locations.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/admin/copy_locations.js 2007-12-09 14:16:53 UTC (rev 8182)
+++ trunk/Open-ILS/xul/staff_client/server/admin/copy_locations.js 2007-12-09 14:19:20 UTC (rev 8183)
@@ -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