From: erickson Date: Mon, 12 Apr 2010 19:12:24 +0000 (+0000) Subject: verify thaw date exists before attempting to iso-string-ify it, otherwise dojo dies X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c8b4d2f9d38183129945b887622e32de7fafcbd3;p=evergreen%2Fmasslnc.git verify thaw date exists before attempting to iso-string-ify it, otherwise dojo dies git-svn-id: svn://svn.open-ils.org/ILS/trunk@16217 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/opac/skin/default/js/holds.js b/Open-ILS/web/opac/skin/default/js/holds.js index 4c7c1697c3..43fa86ba2e 100644 --- a/Open-ILS/web/opac/skin/default/js/holds.js +++ b/Open-ILS/web/opac/skin/default/js/holds.js @@ -818,8 +818,9 @@ function holdsBuildHoldFromWindow() { 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);