[open-ils-commits] r11913 - trunk/Open-ILS/web/opac/skin/default/js
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Jan 22 13:52:42 EST 2009
Author: erickson
Date: 2009-01-22 13:52:39 -0500 (Thu, 22 Jan 2009)
New Revision: 11913
Modified:
trunk/Open-ILS/web/opac/skin/default/js/myopac.js
Log:
verify date string exists before telling dojo to parse it, otherwise, errors
Modified: trunk/Open-ILS/web/opac/skin/default/js/myopac.js
===================================================================
--- trunk/Open-ILS/web/opac/skin/default/js/myopac.js 2009-01-22 18:51:57 UTC (rev 11912)
+++ trunk/Open-ILS/web/opac/skin/default/js/myopac.js 2009-01-22 18:52:39 UTC (rev 11913)
@@ -1571,12 +1571,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