[open-ils-commits] r11912 - branches/rel_1_4/Open-ILS/web/opac/skin/default/js
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Jan 22 13:52:00 EST 2009
Author: erickson
Date: 2009-01-22 13:51:57 -0500 (Thu, 22 Jan 2009)
New Revision: 11912
Modified:
branches/rel_1_4/Open-ILS/web/opac/skin/default/js/myopac.js
Log:
verify date string exists before telling dojo to parse it, otherwise, errors
Modified: branches/rel_1_4/Open-ILS/web/opac/skin/default/js/myopac.js
===================================================================
--- branches/rel_1_4/Open-ILS/web/opac/skin/default/js/myopac.js 2009-01-22 18:10:22 UTC (rev 11911)
+++ branches/rel_1_4/Open-ILS/web/opac/skin/default/js/myopac.js 2009-01-22 18:51:57 UTC (rev 11912)
@@ -1450,12 +1450,15 @@
}
function myopacApplyThawDate() {
- var dateString = dojo.date.stamp.toISOString(dijit.byId('myopac_holds_thaw_date_input').getValue());
+ var dateString = dijit.byId('myopac_holds_thaw_date_input').getValue();
if(dateString) {
- dateString = holdsVerifyThawDate(dateString);
- if(!dateString) return;
- } else {
- dateString = null;
+ dateString = dojo.date.stamp.toISOString(dateString);
+ if(dateString) {
+ dateString = holdsVerifyThawDate(dateString);
+ if(!dateString) return;
+ } else {
+ dateString = null;
+ }
}
myopacProcessHolds('freeze', dateString);
}
More information about the open-ils-commits
mailing list