KMAIN203 - KCLSUPGRAD95 - KCLSUPGRAD30 - Remove Checkbox for Exempt Collections
authorBill Erickson <berickxx@gmail.com>
Wed, 29 Oct 2014 21:06:06 +0000 (17:06 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
    Cross-port: f2730b1

Open-ILS/web/js/ui/default/actor/user/register.js

index 0e9ae91..70881f1 100644 (file)
@@ -827,7 +827,7 @@ function uEditFetchUserSettings(userId) {
     /* fetch any user setting types we need + any that offer opt-in */
     userSettingTypes = pcrud.search('cust', {
         '-or' : [
-            {name:['circ.holds_behind_desk', 'circ.collections.exempt', 'opac.hold_notify', 'opac.default_phone', 'opac.default_pickup_location', 'opac.default_sms_carrier', 'opac.default_sms_notify']}, 
+            {name:['circ.holds_behind_desk', 'opac.hold_notify', 'opac.default_phone', 'opac.default_pickup_location', 'opac.default_sms_carrier', 'opac.default_sms_notify']}, 
             {name : {
                 'in': {
                     select : {atevdef : ['opt_in_setting']}, 
@@ -985,9 +985,9 @@ function uEditDrawSettingRow(tbody, dividerRow, template, stype) {
             var cb = new dijit.form.CheckBox({scrollOnFocus:false}, getByName(row, 'widget'));
             cb.attr('value', userSettings[stype.name()]);
             dojo.connect(cb, 'onChange', function(newVal) { userSettingsToUpdate[stype.name()] = newVal; });
-            if(stype.name() == 'circ.collections.exempt') {
+            /* if(stype.name() == 'circ.collections.exempt') {
                 checkCollectionsExemptPerm(cb);
-            }
+            } */
     }
     tbody.insertBefore(row, dividerRow.nextSibling);
     openils.Util.show(row, 'table-row');
@@ -1390,7 +1390,7 @@ function checkClaimsNoCheckoutCountPerm() {
     );
 }
 
-var collectExemptCBox;
+/* var collectExemptCBox;
 function checkCollectionsExemptPerm(cbox) {
     if(cbox) collectExemptCBox = cbox;
     new openils.User().getPermOrgList(
@@ -1405,7 +1405,7 @@ function checkCollectionsExemptPerm(cbox) {
         true, 
         true
     );
-}
+} */
 
 function usePhonePw(newVal) {
     var newPw = false;
@@ -1663,7 +1663,7 @@ function attachWidgetEvents(fmcls, fmfield, widget) {
                     function(newVal) { 
                         checkClaimsReturnCountPerm(); 
                         checkClaimsNoCheckoutCountPerm();
-                        checkCollectionsExemptPerm();
+                        /* checkCollectionsExemptPerm(); */
                     }
                 );
                 return;