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

(-)a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js (-13 / +17 lines)
Lines 740-759 $(document).ready(function() { Link Here
740
740
741
        let item_ids = $(".renew:checked:visible").map((i, c) => c.value);
741
        let item_ids = $(".renew:checked:visible").map((i, c) => c.value);
742
742
743
        renew_all(item_ids, renew).then(() => {
743
        if( item_ids.length > 0 ){
744
            // Refocus on barcode field if it exists
744
            renew_all(item_ids, renew).then(() => {
745
            if ( $("#barcode").length ) {
745
                // Refocus on barcode field if it exists
746
                $("#barcode").focus();
746
                if ( $("#barcode").length ) {
747
            }
747
                    $("#barcode").focus();
748
                }
748
749
749
            if ( refresh_table ) {
750
                if ( refresh_table ) {
750
                RefreshIssuesTable();
751
                    RefreshIssuesTable();
751
            }
752
                }
752
            $('#RenewChecked, #CheckinChecked').prop('disabled' , true );
753
                $('#RenewChecked, #CheckinChecked').prop('disabled' , true );
753
        });
754
            });
755
756
            // Prevent form submit
757
            return false;
758
        } else {
759
            alert(_("There are no items to be renewed."));
760
        }
754
761
755
        // Prevent form submit
756
        return false;
757
    });
762
    });
758
763
759
    $("#RenewAll").on("click",function(){
764
    $("#RenewAll").on("click",function(){
760
- 

Return to bug 37524