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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/restore_deleted_borrowers.tt (-1 / +9 lines)
Lines 286-291 Link Here
286
    [% INCLUDE 'datatables.inc' %]
286
    [% INCLUDE 'datatables.inc' %]
287
    <script>
287
    <script>
288
        $(document).ready(function() {
288
        $(document).ready(function() {
289
290
            $('#search_form').on('submit' , function(e) {
291
                if ( $('#cardnumber').val() == '' && $('#borrowernumber').val() == '' && $('#firstname').val() == '' && $('#surname').val() == '' && $('#categorycode').val() == '' && $('#branchcode').val() == '' && $('#deleted_from').val() == '' && $('#deleted_to').val() == '' ) {
292
                    e.preventDefault();
293
                    alert('Please fill out at least one search field.');
294
                    return false;
295
                }
296
            });
297
289
            // Select all checkbox functionality
298
            // Select all checkbox functionality
290
            $("#select_all").on("click", function() {
299
            $("#select_all").on("click", function() {
291
                $("#deleted_patrons_table tbody input[type='checkbox']").prop('checked', this.checked);
300
                $("#deleted_patrons_table tbody input[type='checkbox']").prop('checked', this.checked);
292
- 

Return to bug 34069