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

(-)a/koha-tmpl/intranet-tmpl/prog/js/holds.js (-3 / +2 lines)
Lines 420-426 $(document).ready(function() { Link Here
420
        </div>\
420
        </div>\
421
    ");
421
    ");
422
422
423
    $("#suspend-modal-clear-date").on( "click", function() { $(".suspend-until").val(""); } );
423
    $("#suspend-modal-clear-date").on( "click", function() { $("#suspend-modal-until").flatpickr().clear(); } );
424
424
425
    $("#suspend-modal-submit").on( "click", function( e ) {
425
    $("#suspend-modal-submit").on( "click", function( e ) {
426
        e.preventDefault();
426
        e.preventDefault();
Lines 440-446 $(document).ready(function() { Link Here
440
            }
440
            }
441
            holdsTable.api().ajax.reload();
441
            holdsTable.api().ajax.reload();
442
        }).done(function() {
442
        }).done(function() {
443
            $(".suspend-until").val(""); // clean the input
443
            $("#suspend-modal-until").flatpickr().clear(); // clean the input
444
            $('#suspend-modal').modal('hide');
444
            $('#suspend-modal').modal('hide');
445
        });
445
        });
446
    });
446
    });
447
- 

Return to bug 34263