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

(-)a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js (-2 / +10 lines)
Lines 249-254 $(document).ready(function() { Link Here
249
        return false;
249
        return false;
250
    });
250
    });
251
251
252
    $('#RenewCheckinChecked').on('click', function(){
253
        RefreshIssuesTable();
254
    });
255
252
    if ( Cookies.get("issues-table-load-immediately-" + script) == "true" ) {
256
    if ( Cookies.get("issues-table-load-immediately-" + script) == "true" ) {
253
        LoadIssuesTable();
257
        LoadIssuesTable();
254
        $('#issues-table-load-immediately').prop('checked', true);
258
        $('#issues-table-load-immediately').prop('checked', true);
Lines 257-262 $(document).ready(function() { Link Here
257
        Cookies.set("issues-table-load-immediately-" + script, $(this).is(':checked'), { expires: 365 });
261
        Cookies.set("issues-table-load-immediately-" + script, $(this).is(':checked'), { expires: 365 });
258
    });
262
    });
259
263
264
    function RefreshIssuesTable() {
265
        var table = $('#issues-table').DataTable();
266
        table.ajax.reload();
267
    }
268
260
    function LoadIssuesTable() {
269
    function LoadIssuesTable() {
261
        $('#issues-table-loading-message').hide();
270
        $('#issues-table-loading-message').hide();
262
        $('#issues-table').show();
271
        $('#issues-table').show();
Lines 293-299 $(document).ready(function() { Link Here
293
                    "iDataSort": 2, // Sort on hidden unformatted date due column
302
                    "iDataSort": 2, // Sort on hidden unformatted date due column
294
                    "mDataProp": function( oObj ) {
303
                    "mDataProp": function( oObj ) {
295
                        var due = oObj.date_due_formatted;
304
                        var due = oObj.date_due_formatted;
296
305
                        console.log(due);
297
                        if ( oObj.date_due_overdue ) {
306
                        if ( oObj.date_due_overdue ) {
298
                            due = "<span class='overdue'>" + due + "</span>";
307
                            due = "<span class='overdue'>" + due + "</span>";
299
                        }
308
                        }
300
- 

Return to bug 28653