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

(-)a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js (-5 / +8 lines)
Lines 98-103 $(document).ready(function() { Link Here
98
98
99
    // Handle renewals and returns
99
    // Handle renewals and returns
100
    $("#RenewCheckinChecked").on("click",function(){
100
    $("#RenewCheckinChecked").on("click",function(){
101
102
        let refresh_table = true;
101
        $(".checkin:checked:visible").each(function() {
103
        $(".checkin:checked:visible").each(function() {
102
            itemnumber = $(this).val();
104
            itemnumber = $(this).val();
103
105
Lines 127-132 $(document).ready(function() { Link Here
127
                    } else {
129
                    } else {
128
                        content = __("Unable to check in");
130
                        content = __("Unable to check in");
129
                        $(id).parent().parent().addClass('warn');
131
                        $(id).parent().parent().addClass('warn');
132
                        refresh_table = false;
130
                    }
133
                    }
131
134
132
                    $(id).replaceWith( content );
135
                    $(id).replaceWith( content );
Lines 205-210 $(document).ready(function() { Link Here
205
                        } else {
208
                        } else {
206
                            content += __("reason unknown");
209
                            content += __("reason unknown");
207
                        }
210
                        }
211
                        refresh_table = false;
208
                    }
212
                    }
209
213
210
                    $(id).replaceWith( content );
214
                    $(id).replaceWith( content );
Lines 219-224 $(document).ready(function() { Link Here
219
            $("#barcode").focus();
223
            $("#barcode").focus();
220
        }
224
        }
221
225
226
        if ( refresh_table ) {
227
            RefreshIssuesTable();
228
        }
229
222
        // Prevent form submit
230
        // Prevent form submit
223
        return false;
231
        return false;
224
    });
232
    });
Lines 250-259 $(document).ready(function() { Link Here
250
        return false;
258
        return false;
251
    });
259
    });
252
260
253
    $('#RenewCheckinChecked').on('click', function(){
254
        RefreshIssuesTable();
255
    });
256
257
    if ( Cookies.get("issues-table-load-immediately-" + script) == "true" ) {
261
    if ( Cookies.get("issues-table-load-immediately-" + script) == "true" ) {
258
        if ( LoadCheckoutsTableDelay ) {
262
        if ( LoadCheckoutsTableDelay ) {
259
            loadIssuesTableDelayTimeoutId = setTimeout( function(){ LoadIssuesTable() }, LoadCheckoutsTableDelay * 1000);
263
            loadIssuesTableDelayTimeoutId = setTimeout( function(){ LoadIssuesTable() }, LoadCheckoutsTableDelay * 1000);
260
- 

Return to bug 34302