Turn prevention of renewals of overdue items into a preference; default to allowing...
authordbs <dbs@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Mon, 8 Feb 2010 19:19:42 +0000 (19:19 +0000)
committerdbs <dbs@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Mon, 8 Feb 2010 19:19:42 +0000 (19:19 +0000)
git-svn-id: svn://svn.open-ils.org/ILS-Contrib/conifer/branches/rel_1_6_0@770 6d9bc8c9-1ec2-4278-b937-99fde70a366f

web/opac/skin/default/js/myopac.js

index a1a580d..e62032f 100644 (file)
@@ -8,6 +8,7 @@ var fleshedContainers = {};
 var holdCache = {};
 var holdStatusCache = {};
 var allowPendingAddr = false;
+var preventRenewOverdue = false;
 
 
 function clearNodes( node, keepArray ) {
@@ -247,7 +248,7 @@ function myOPACDrawCheckedItem(circ, tbody) {
        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;