[open-ils-commits] r16219 - branches/rel_1_6_0/Open-ILS/web/opac/skin/default/js (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Apr 12 15:15:15 EDT 2010
Author: erickson
Date: 2010-04-12 15:15:10 -0400 (Mon, 12 Apr 2010)
New Revision: 16219
Modified:
branches/rel_1_6_0/Open-ILS/web/opac/skin/default/js/holds.js
Log:
backport 16217: verify thaw date exists before attempting to iso-string-ify it, otherwise dojo dies
Modified: branches/rel_1_6_0/Open-ILS/web/opac/skin/default/js/holds.js
===================================================================
--- branches/rel_1_6_0/Open-ILS/web/opac/skin/default/js/holds.js 2010-04-12 19:14:47 UTC (rev 16218)
+++ branches/rel_1_6_0/Open-ILS/web/opac/skin/default/js/holds.js 2010-04-12 19:15:10 UTC (rev 16219)
@@ -752,8 +752,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