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

(-)a/koha-tmpl/intranet-tmpl/prog/js/datatables.js (+12 lines)
Lines 1308-1313 function _dt_save_restore_state(table_settings, external_filter_nodes = {}) { Link Here
1308
            }
1308
            }
1309
        }
1309
        }
1310
1310
1311
        var default_column_defs = [
1312
            { targets: ["string-sort"], type: "string" },
1313
            { targets: ["anti-the"], type: "anti-the" },
1314
            { targets: ["NoSort"], orderable: false, searchable: false },
1315
        ];
1316
        if (settings["columnDefs"] === undefined) {
1317
            settings["columnDefs"] = default_column_defs;
1318
        } else {
1319
            settings["columnDefs"] =
1320
                settings["columnDefs"].concat(default_column_defs);
1321
        }
1322
1311
        $(this).data("bKohaColumnsUseNames", settings.bKohaColumnsUseNames);
1323
        $(this).data("bKohaColumnsUseNames", settings.bKohaColumnsUseNames);
1312
        $(this).data("bKohaAjaxSVC", settings.bKohaAjaxSVC); // Must not be used for new tables!
1324
        $(this).data("bKohaAjaxSVC", settings.bKohaAjaxSVC); // Must not be used for new tables!
1313
        var table = $(this).dataTable(settings);
1325
        var table = $(this).dataTable(settings);
(-)a/koha-tmpl/opac-tmpl/bootstrap/js/datatables.js (-4 / +9 lines)
Lines 347-356 function _dt_visibility(table_settings, table_dt) { Link Here
347
        }
347
        }
348
348
349
        var default_column_defs = [
349
        var default_column_defs = [
350
            { aTargets: ["string-sort"], sType: "string" },
350
            { targets: ["string-sort"], type: "string" },
351
            { aTargets: ["anti-the"], sType: "anti-the" },
351
            { targets: ["anti-the"], type: "anti-the" },
352
            { aTargets: ["NoSort"], bSortable: false, bSearchable: false },
352
            { targets: ["NoSort"], orderable: false, searchable: false },
353
        ];
353
        ];
354
        if (settings["columnDefs"] === undefined) {
355
            settings["columnDefs"] = default_column_defs;
356
        } else {
357
            settings["columnDefs"] =
358
                settings["columnDefs"].concat(default_column_defs);
359
        }
354
360
355
        $(this).data("bKohaColumnsUseNames", settings.bKohaColumnsUseNames);
361
        $(this).data("bKohaColumnsUseNames", settings.bKohaColumnsUseNames);
356
        var table = $(this).dataTable(settings);
362
        var table = $(this).dataTable(settings);
357
- 

Return to bug 26553