[open-ils-commits] r16217 - trunk/Open-ILS/web/opac/skin/default/js (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Apr 12 15:12:28 EDT 2010
Author: erickson
Date: 2010-04-12 15:12:24 -0400 (Mon, 12 Apr 2010)
New Revision: 16217
Modified:
trunk/Open-ILS/web/opac/skin/default/js/holds.js
Log:
verify thaw date exists before attempting to iso-string-ify it, otherwise dojo dies
Modified: trunk/Open-ILS/web/opac/skin/default/js/holds.js
===================================================================
--- trunk/Open-ILS/web/opac/skin/default/js/holds.js 2010-04-12 18:59:37 UTC (rev 16216)
+++ trunk/Open-ILS/web/opac/skin/default/js/holds.js 2010-04-12 19:12:24 UTC (rev 16217)
@@ -818,8 +818,9 @@
if($('holds_frozen_chkbox').checked) {
hold.frozen('t');
unHideMe($('hold_frozen_thaw_row'));
- thawDate = dojo.date.stamp.toISOString(dijit.byId('holds_frozen_thaw_input').getValue());
+ var thawDate = dijit.byId('holds_frozen_thaw_input').attr('value');
if(thawDate) {
+ thawDate = dojo.date.stamp.toISOString(thawDate);
thawDate = holdsVerifyThawDate(thawDate);
if(thawDate)
hold.thaw_date(thawDate);
More information about the open-ils-commits
mailing list