[open-ils-commits] r19241 - trunk/Open-ILS/web/js/dojo/openils/widget (senator)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Jan 20 18:05:45 EST 2011
Author: senator
Date: 2011-01-20 18:05:39 -0500 (Thu, 20 Jan 2011)
New Revision: 19241
Modified:
trunk/Open-ILS/web/js/dojo/openils/widget/XULTermLoader.js
Log:
Acq: the "Load Catalog Record IDs" interface failed on files produced in
Windows due to not stripping out carriage returns. Fixed.
Modified: trunk/Open-ILS/web/js/dojo/openils/widget/XULTermLoader.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/widget/XULTermLoader.js 2011-01-20 22:37:46 UTC (rev 19240)
+++ trunk/Open-ILS/web/js/dojo/openils/widget/XULTermLoader.js 2011-01-20 23:05:39 UTC (rev 19241)
@@ -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