View | Details | Raw Unified | Return to bug 23623
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt (-3 / +2 lines)
Lines 1053-1059 Link Here
1053
                    $('#update_privacy_guarantor_checkouts').click( function() {
1053
                    $('#update_privacy_guarantor_checkouts').click( function() {
1054
                        var can_see_checkouts = $('#privacy_guarantor_checkouts').val() == 1;
1054
                        var can_see_checkouts = $('#privacy_guarantor_checkouts').val() == 1;
1055
                        $.ajax({
1055
                        $.ajax({
1056
                            url: "/api/v1/public/patrons/[% logged_in_user.borrowernumber %]/guarantors/can_see_checkouts",
1056
                            url: "/api/v1/public/patrons/[% logged_in_user.borrowernumber | uri %]/guarantors/can_see_checkouts",
1057
                            type: "PUT",
1057
                            type: "PUT",
1058
                            data: JSON.stringify({ allowed: can_see_checkouts }),
1058
                            data: JSON.stringify({ allowed: can_see_checkouts }),
1059
                            contentType: "application/json",
1059
                            contentType: "application/json",
Lines 1071-1077 Link Here
1071
                    $('#update_privacy_guarantor_fines').click( function() {
1071
                    $('#update_privacy_guarantor_fines').click( function() {
1072
                        var can_see_charges = $('#privacy_guarantor_fines').val() == 1;
1072
                        var can_see_charges = $('#privacy_guarantor_fines').val() == 1;
1073
                        $.ajax({
1073
                        $.ajax({
1074
                            url: "/api/v1/public/patrons/[% logged_in_user.borrowernumber %]/guarantors/can_see_charges",
1074
                            url: "/api/v1/public/patrons/[% logged_in_user.borrowernumber | uri %]/guarantors/can_see_charges",
1075
                            type: 'PUT',
1075
                            type: 'PUT',
1076
                            data: JSON.stringify({ allowed: can_see_charges }),
1076
                            data: JSON.stringify({ allowed: can_see_charges }),
1077
                            contentType: 'application/json',
1077
                            contentType: 'application/json',
1078
- 

Return to bug 23623