[open-ils-commits] r19242 - branches/rel_2_0/Open-ILS/web/js/dojo/openils/widget (senator)

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Jan 20 18:06:48 EST 2011


Author: senator
Date: 2011-01-20 18:06:42 -0500 (Thu, 20 Jan 2011)
New Revision: 19242

Modified:
   branches/rel_2_0/Open-ILS/web/js/dojo/openils/widget/XULTermLoader.js
Log:
Backport r19241 from trunk

Acq: the "Load Catalog Record IDs" interface failed on files produced in
Windows due to not stripping out carriage returns. Fixed.


Modified: branches/rel_2_0/Open-ILS/web/js/dojo/openils/widget/XULTermLoader.js
===================================================================
--- branches/rel_2_0/Open-ILS/web/js/dojo/openils/widget/XULTermLoader.js	2011-01-20 23:05:39 UTC (rev 19241)
+++ branches/rel_2_0/Open-ILS/web/js/dojo/openils/widget/XULTermLoader.js	2011-01-20 23:06:42 UTC (rev 19242)
@@ -101,7 +101,7 @@
                 if (!data) return [];
                 else return data.split("\n").
                     filter(function(o) { return o.length > 0; }).
-                    map(function(o) { return o.split(",")[0] }).
+                    map(function(o) {return o.replace("\r","").split(",")[0];}).
                     filter(function(o) { return o.length > 0; });
             }
         }



More information about the open-ils-commits mailing list