[open-ils-commits] r8183 - trunk/Open-ILS/xul/staff_client/server/admin

Mike Rylander mrylander at gmail.com
Sun Dec 9 10:43:01 EST 2007


On Dec 9, 2007 9:39 AM,  <svn at svn.open-ils.org> wrote:
> 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

Was this in response to the I18N bug?  (Don't get me wrong, it's the
right thing to do.  Just curious.)

--miker

>
> 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;
>
> _______________________________________________
> open-ils-commits mailing list
> open-ils-commits at list.georgialibraries.org
> http://list.georgialibraries.org/mailman/listinfo/open-ils-commits
>



-- 
Mike Rylander
 | VP, Research and Design
 | Equinox Software, Inc. / The Evergreen Experts
 | phone:  1-877-OPEN-ILS (673-6457)
 | email:  miker at esilibrary.com
 | web:  http://www.esilibrary.com


More information about the open-ils-commits mailing list