[open-ils-commits] r770 - conifer/branches/rel_1_6_0/web/opac/skin/default/js (dbs)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Feb 8 14:19:46 EST 2010
Author: dbs
Date: 2010-02-08 14:19:42 -0500 (Mon, 08 Feb 2010)
New Revision: 770
Modified:
conifer/branches/rel_1_6_0/web/opac/skin/default/js/myopac.js
Log:
Turn prevention of renewals of overdue items into a preference; default to allowing renewals of overdue items
Modified: conifer/branches/rel_1_6_0/web/opac/skin/default/js/myopac.js
===================================================================
--- conifer/branches/rel_1_6_0/web/opac/skin/default/js/myopac.js 2010-02-07 23:12:20 UTC (rev 769)
+++ conifer/branches/rel_1_6_0/web/opac/skin/default/js/myopac.js 2010-02-08 19:19:42 UTC (rev 770)
@@ -8,6 +8,7 @@
var holdCache = {};
var holdStatusCache = {};
var allowPendingAddr = false;
+var preventRenewOverdue = false;
function clearNodes( node, keepArray ) {
@@ -247,7 +248,7 @@
circsCache.push(circ);
// Disable renewals if no renewals left or item already overdue
- if( circ.renewal_remaining() < 1 || circ._od ) {
+ if( circ.renewal_remaining() < 1 || (preventRenewOverdue && circ._od)) {
$n(row, 'selectme').disabled = true;
if(!__can_renew_one)
$('mo_renew_button').disabled = true;
More information about the open-ils-commits
mailing list