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

(-)a/koha-tmpl/intranet-tmpl/prog/js/datatables.js (+12 lines)
Lines 1380-1385 function update_search_description( Link Here
1380
            }
1380
            }
1381
        }
1381
        }
1382
1382
1383
        var default_column_defs = [
1384
            { targets: ["string-sort"], type: "string" },
1385
            { targets: ["anti-the"], type: "anti-the" },
1386
            { targets: ["NoSort"], orderable: false, searchable: false },
1387
        ];
1388
        if (settings["columnDefs"] === undefined) {
1389
            settings["columnDefs"] = default_column_defs;
1390
        } else {
1391
            settings["columnDefs"] =
1392
                settings["columnDefs"].concat(default_column_defs);
1393
        }
1394
1383
        $(this).data("bKohaColumnsUseNames", settings.bKohaColumnsUseNames);
1395
        $(this).data("bKohaColumnsUseNames", settings.bKohaColumnsUseNames);
1384
        $(this).data("bKohaAjaxSVC", settings.bKohaAjaxSVC); // Must not be used for new tables!
1396
        $(this).data("bKohaAjaxSVC", settings.bKohaAjaxSVC); // Must not be used for new tables!
1385
        var table = $(this).dataTable(settings);
1397
        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