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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests.tt (+2 lines)
Lines 422-427 Link Here
422
            return status_label;
422
            return status_label;
423
        }
423
        }
424
        let opac_illrequests_additional_filters = {};
424
        let opac_illrequests_additional_filters = {};
425
        let opac_illrequests_data_filters = [];
425
        $("#illrequestlist").kohaTable({
426
        $("#illrequestlist").kohaTable({
426
            order: [[ 0, "desc" ]],
427
            order: [[ 0, "desc" ]],
427
            dom: '<"dt-info"i><"top pager"<"table_entries"lp>t<"bottom pager"pi>',
428
            dom: '<"dt-info"i><"top pager"<"table_entries"lp>t<"bottom pager"pi>',
Lines 436-441 Link Here
436
                    return data;
437
                    return data;
437
                }
438
                }
438
            } ],
439
            } ],
440
            dataFilters: opac_illrequests_data_filters,
439
            columns: [
441
            columns: [
440
                {
442
                {
441
                    data: 'ill_request_id',
443
                    data: 'ill_request_id',
(-)a/koha-tmpl/opac-tmpl/bootstrap/js/datatables.js (-1 / +6 lines)
Lines 102-107 function _dt_default_ajax(params) { Link Here
102
                json.draw = draw;
102
                json.draw = draw;
103
            }
103
            }
104
104
105
            if (options.dataFilters) {
106
                for (const filter of options.dataFilters) {
107
                    json.data = filter(json.data);
108
                }
109
            }
110
105
            return JSON.stringify(json);
111
            return JSON.stringify(json);
106
        },
112
        },
107
        data: function (data, settings) {
113
        data: function (data, settings) {
108
- 

Return to bug 40013