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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-privacy.tt (+1 lines)
Lines 96-101 Link Here
96
                                        </select>
96
                                        </select>
97
                                    </div> <!-- /.col-6 -->
97
                                    </div> <!-- /.col-6 -->
98
                                </div> <!-- /.form-group.row -->
98
                                </div> <!-- /.form-group.row -->
99
                                <div id="never-warning" class="alert-danger">This option will delete all previous checkout history immediately.</div>
99
100
100
                                [% IF has_guarantor_flag && (Koha.Preference('AllowPatronToSetCheckoutsVisibilityForGuarantor') || Koha.Preference('AllowPatronToSetFinesVisibilityForGuarantor') ) %]
101
                                [% IF has_guarantor_flag && (Koha.Preference('AllowPatronToSetCheckoutsVisibilityForGuarantor') || Koha.Preference('AllowPatronToSetFinesVisibilityForGuarantor') ) %]
101
                                    [% IF Koha.Preference('AllowPatronToSetCheckoutsVisibilityForGuarantor') %]
102
                                    [% IF Koha.Preference('AllowPatronToSetCheckoutsVisibilityForGuarantor') %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/js/privacy.js (-1 / +9 lines)
Lines 3-6 $(document).ready(function(){ Link Here
3
    $('.privacy-confirm-delete').on('click',function(){
3
    $('.privacy-confirm-delete').on('click',function(){
4
        return confirmDelete( __("Warning: Cannot be undone. Please confirm once again") );
4
        return confirmDelete( __("Warning: Cannot be undone. Please confirm once again") );
5
    });
5
    });
6
7
    $('#never-warning').hide();
8
    $('#privacy').on('change', function() {
9
        if ( $(this).val() == '2' ) {
10
            $('#never-warning').show();
11
        } else {
12
            $('#never-warning').hide();
13
        }
14
    });
6
});
15
});
7
- 

Return to bug 38125