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

(-)a/koha-tmpl/intranet-tmpl/prog/js/datatables.js (+11 lines)
Lines 1091-1096 function _dt_save_restore_state(table_settings, external_filter_nodes={}){ Link Here
1091
            }
1091
            }
1092
        }
1092
        }
1093
1093
1094
        var default_column_defs = [
1095
           { "targets": ["string-sort"], "type": "string" },
1096
           { "targets": ["anti-the"], "type": "anti-the" },
1097
           { "targets": ["NoSort"], "orderable": false, "searchable": false }
1098
        ];
1099
        if (settings["columnDefs"] === undefined) {
1100
            settings["columnDefs"] = default_column_defs;
1101
        } else {
1102
            settings["columnDefs"] = settings["columnDefs"].concat(default_column_defs);
1103
        }
1104
1094
        $(this).data('bKohaColumnsUseNames', settings.bKohaColumnsUseNames);
1105
        $(this).data('bKohaColumnsUseNames', settings.bKohaColumnsUseNames);
1095
        $(this).data('bKohaAjaxSVC', settings.bKohaAjaxSVC); // Must not be used for new tables!
1106
        $(this).data('bKohaAjaxSVC', settings.bKohaAjaxSVC); // Must not be used for new tables!
1096
        var table = $(this).dataTable(settings);
1107
        var table = $(this).dataTable(settings);
(-)a/koha-tmpl/opac-tmpl/bootstrap/js/datatables.js (-4 / +8 lines)
Lines 311-320 function _dt_visibility(table_settings, table_dt){ Link Here
311
        }
311
        }
312
312
313
        var default_column_defs = [
313
        var default_column_defs = [
314
            { "aTargets": ["string-sort"], "sType": "string" },
314
            { "targets": ["string-sort"], "type": "string" },
315
            { "aTargets": ["anti-the"], "sType": "anti-the" },
315
            { "targets": ["anti-the"], "type": "anti-the" },
316
            { "aTargets": ["NoSort"], "bSortable": false, "bSearchable": false }
316
            { "targets": ["NoSort"], "orderable": false, "searchable": false }
317
        ];
317
        ];
318
        if (settings["columnDefs"] === undefined) {
319
            settings["columnDefs"] = default_column_defs;
320
        } else {
321
            settings["columnDefs"] = settings["columnDefs"].concat(default_column_defs);
322
        }
318
323
319
        $(this).data('bKohaColumnsUseNames', settings.bKohaColumnsUseNames);
324
        $(this).data('bKohaColumnsUseNames', settings.bKohaColumnsUseNames);
320
        var table = $(this).dataTable(settings);
325
        var table = $(this).dataTable(settings);
321
- 

Return to bug 26553