[open-ils-commits] r10686 - trunk/Open-ILS/web/opac/skin/default/js
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Sep 22 16:40:42 EDT 2008
Author: erickson
Date: 2008-09-22 16:40:38 -0400 (Mon, 22 Sep 2008)
New Revision: 10686
Modified:
trunk/Open-ILS/web/opac/skin/default/js/holds.js
Log:
better protection for non-existent hold expire interval setting
Modified: trunk/Open-ILS/web/opac/skin/default/js/holds.js
===================================================================
--- trunk/Open-ILS/web/opac/skin/default/js/holds.js 2008-09-22 16:39:32 UTC (rev 10685)
+++ trunk/Open-ILS/web/opac/skin/default/js/holds.js 2008-09-22 20:40:38 UTC (rev 10686)
@@ -482,11 +482,12 @@
var interval = fetchOrgSettingDefault(holdArgs.recipient.home_ou(), 'circ.hold_expire_interval');
var secs = 0;
- if(interval)
+ if(interval) {
secs = interval_to_seconds(interval);
- var expire = new Date();
- expire.setTime(expire.getTime() + Number(secs + '000'));
- dijit.byId('holds_expire_time').setValue(expire);
+ var expire = new Date();
+ expire.setTime(expire.getTime() + Number(secs + '000'));
+ dijit.byId('holds_expire_time').setValue(expire);
+ }
}
function holdsParseMRFormats(str) {
More information about the open-ils-commits
mailing list