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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc (-6 / +6 lines)
Lines 130-142 function KohaTable(id_selector, dt_parameters, columns_settings, add_filters) { Link Here
130
    var new_parameters = {}
130
    var new_parameters = {}
131
    $.extend(true, new_parameters, dataTablesDefaults, dt_parameters);
131
    $.extend(true, new_parameters, dataTablesDefaults, dt_parameters);
132
    var default_column_defs = [
132
    var default_column_defs = [
133
        { "aTargets": [ "title-string" ], "sType": "title-string" },
133
        { "targets": [ "title-string" ], "type": "title-string" },
134
	{ "aTargets": [ "string-sort" ],  "sType": "string" },
134
        { "targets": [ "string-sort" ],  "type": "string" },
135
	{ "aTargets": [ "anti-the" ],     "sType": "anti-the" },
135
        { "targets": [ "anti-the" ],     "type": "anti-the" },
136
	{ "aTargets": [ "NoSort" ],       "bSortable": false, "bSearchable": false },
136
        { "targets": [ "NoSort" ],       "orderable": false, "searchable": false },
137
    ];
137
    ];
138
    if ( new_parameters["aoColumnDefs"] === undefined ) {
138
    if ( new_parameters["columnDefs"] === undefined ) {
139
        new_parameters["aoColumnDefs"] = default_column_defs;
139
        new_parameters["columnDefs"] = default_column_defs;
140
    } else {
140
    } else {
141
        $.extend(true, new_parameters, default_column_defs);
141
        $.extend(true, new_parameters, default_column_defs);
142
    }
142
    }
(-)a/koha-tmpl/intranet-tmpl/prog/js/datatables.js (-18 / +17 lines)
Lines 5-26 Link Here
5
//      // other settings
5
//      // other settings
6
//  } ) );
6
//  } ) );
7
var dataTablesDefaults = {
7
var dataTablesDefaults = {
8
    "oLanguage": {
8
    "language": {
9
        "oPaginate": {
9
        "paginate": {
10
            "sFirst"    : __('First'),
10
            "first"    : __('First'),
11
            "sLast"     : __('Last'),
11
            "last"     : __('Last'),
12
            "sNext"     : __('Next'),
12
            "next"     : __('Next'),
13
            "sPrevious" : __('Previous'),
13
            "previous" : __('Previous'),
14
        },
14
        },
15
        "sEmptyTable"       : __('No data available in table'),
15
        "emptyTable"       : __('No data available in table'),
16
        "sInfo"             : __('Showing _START_ to _END_ of _TOTAL_ entries'),
16
        "info"             : __('Showing _START_ to _END_ of _TOTAL_ entries'),
17
        "sInfoEmpty"        : __('No entries to show'),
17
        "infoEmpty"        : __('No entries to show'),
18
        "sInfoFiltered"     : __('(filtered from _MAX_ total entries)'),
18
        "infoFiltered"     : __('(filtered from _MAX_ total entries)'),
19
        "sLengthMenu"       : __('Show _MENU_ entries'),
19
        "lengthMenu"       : __('Show _MENU_ entries'),
20
        "sLoadingRecords"   : __('Loading...'),
20
        "loadingRecords"   : __('Loading...'),
21
        "sProcessing"       : __('Processing...'),
21
        "processing"       : __('Processing...'),
22
        "sSearch"           : __('Search:'),
22
        "search"           : __('Search:'),
23
        "sZeroRecords"      : __('No matching records found'),
23
        "zeroRecords"      : __('No matching records found'),
24
        buttons: {
24
        buttons: {
25
            "copyTitle"     : __('Copy to clipboard'),
25
            "copyTitle"     : __('Copy to clipboard'),
26
            "copyKeys"      : __('Press <i>ctrl</i> or <i>⌘</i> + <i>C</i> to copy the table data<br>to your system clipboard.<br><br>To cancel, click this message or press escape.'),
26
            "copyKeys"      : __('Press <i>ctrl</i> or <i>⌘</i> + <i>C</i> to copy the table data<br>to your system clipboard.<br><br>To cancel, click this message or press escape.'),
Lines 48-55 var dataTablesDefaults = { Link Here
48
            node.addClass("disabled");
48
            node.addClass("disabled");
49
        }
49
        }
50
    }],
50
    }],
51
    "aLengthMenu": [[10, 20, 50, 100, -1], [10, 20, 50, 100, __('All')]],
51
    "lengthMenu": [[10, 20, 50, 100, -1], [10, 20, 50, 100, __('All')]],
52
    "iDisplayLength": 20,
52
    "pageLength": 20,
53
    "fixedHeader": true,
53
    "fixedHeader": true,
54
    initComplete: function( settings) {
54
    initComplete: function( settings) {
55
        var tableId = settings.nTable.id
55
        var tableId = settings.nTable.id
56
- 

Return to bug 28055