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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc (-1 / +14 lines)
Lines 127-134 function KohaTable(id_selector, dt_parameters, columns_settings, add_filters) { Link Here
127
        thead_row.before(clone);
127
        thead_row.before(clone);
128
    }
128
    }
129
129
130
    table.dataTable($.extend(true, {}, dataTablesDefaults, dt_parameters));
130
    var new_parameters = {}
131
    $.extend(true, new_parameters, dataTablesDefaults, dt_parameters);
132
    var default_column_defs = [
133
        { "aTargets": [ "title-string" ], "sType": "title-string" },
134
	{ "aTargets": [ "string-sort" ],  "sType": "string" },
135
	{ "aTargets": [ "anti-the" ],     "sType": "anti-the" },
136
	{ "aTargets": [ "NoSort" ],       "bSortable": false, "bSearchable": false },
137
    ];
138
    if ( new_parameters["aoColumnDefs"] === undefined ) {
139
        new_parameters["aoColumnDefs"] = default_column_defs;
140
    } else {
141
        $.extend(true, new_parameters, default_column_defs);
142
    }
131
143
144
    table.dataTable(new_parameters);
132
    table.DataTable().on("column-visibility.dt", function(){
145
    table.DataTable().on("column-visibility.dt", function(){
133
        if( typeof columnsInit == 'function' ){
146
        if( typeof columnsInit == 'function' ){
134
            // This function can be created separately and used to trigger
147
            // This function can be created separately and used to trigger
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt (-6 lines)
Lines 929-940 Link Here
929
        [% SET table_settings = TablesSettings.GetTableSettings( 'acqui', 'basket', 'orders' ) %];
929
        [% SET table_settings = TablesSettings.GetTableSettings( 'acqui', 'basket', 'orders' ) %];
930
        $(document).ready(function() {
930
        $(document).ready(function() {
931
            KohaTable("orders", {
931
            KohaTable("orders", {
932
                [% IF ( active ) %]
933
                    "aoColumnDefs": [
934
                        { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
935
                        { "sType": "anti-the", "aTargets": [ "anti-the" ] }
936
                    ],
937
                [% END %]
938
                "sPaginationType": "full",
932
                "sPaginationType": "full",
939
                "autoWidth": false,
933
                "autoWidth": false,
940
                "exportColumns": [0,1,2,3,4,5,6,7,8,9,10,11,12,13],
934
                "exportColumns": [0,1,2,3,4,5,6,7,8,9,10,11,12,13],
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/duplicate_orders.tt (-4 lines)
Lines 321-330 Basket [% basket.basketno | html %] › Duplicate existing orders Link Here
321
            $('span.hint').hide();
321
            $('span.hint').hide();
322
            var columns_settings;// = [% TablesSettings.GetColumns( 'acqui', 'histsearch', 'histsearcht', 'json' ) | $raw %];
322
            var columns_settings;// = [% TablesSettings.GetColumns( 'acqui', 'histsearch', 'histsearcht', 'json' ) | $raw %];
323
            KohaTable("table_orders", {
323
            KohaTable("table_orders", {
324
                "aoColumnDefs": [
325
                    { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
326
                    { "sType": "title-string", "aTargets" : [ "title-string" ] }
327
                ],
328
                "bPaginate": false
324
                "bPaginate": false
329
            }, columns_settings );
325
            }, columns_settings );
330
326
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt (-4 lines)
Lines 132-141 Link Here
132
        $(document).ready(function() {
132
        $(document).ready(function() {
133
            var columns_settings = [% TablesSettings.GetColumns( 'acqui', 'histsearch', 'histsearcht', 'json' ) | $raw %];
133
            var columns_settings = [% TablesSettings.GetColumns( 'acqui', 'histsearch', 'histsearcht', 'json' ) | $raw %];
134
            KohaTable("histsearcht", {
134
            KohaTable("histsearcht", {
135
                "aoColumnDefs": [
136
                    { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
137
                    { "sType": "title-string", "aTargets" : [ "title-string" ] }
138
                ],
139
                "sPaginationType": "full"
135
                "sPaginationType": "full"
140
            }, columns_settings );
136
            }, columns_settings );
141
137
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt (-7 / +2 lines)
Lines 54-62 Link Here
54
      <thead>
54
      <thead>
55
        <tr>
55
        <tr>
56
            [% IF bookseller_filter %]
56
            [% IF bookseller_filter %]
57
                <th><a id="CheckAll" href="#">Check all</a><br /><a id="CheckNone" href="#">Uncheck all</a></th>
57
                <th class="NoSort"><a id="CheckAll" href="#">Check all</a><br /><a id="CheckNone" href="#">Uncheck all</a></th>
58
            [% ELSE %]
58
            [% ELSE %]
59
                <th></th>
59
                <th class="NoSort"></th>
60
            [% END %]
60
            [% END %]
61
            <th>Order line</th>
61
            <th>Order line</th>
62
            <th class="title-string">Order date</th>
62
            <th class="title-string">Order date</th>
Lines 291-301 Link Here
291
291
292
            var columns_settings = [% TablesSettings.GetColumns( 'acqui', 'lateorders', 'late_orders', 'json' ) | $raw %];
292
            var columns_settings = [% TablesSettings.GetColumns( 'acqui', 'lateorders', 'late_orders', 'json' ) | $raw %];
293
            late_orderst = KohaTable("late_orders", {
293
            late_orderst = KohaTable("late_orders", {
294
                "aoColumnDefs": [
295
                    { "aTargets": [ 0 ], "bSortable": false, "bSearchable": false },
296
                    { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
297
                    { "sType": "title-string", "aTargets" : [ "title-string" ] }
298
                ],
299
                "sPaginationType": "full",
294
                "sPaginationType": "full",
300
                "bAutoWidth": false,
295
                "bAutoWidth": false,
301
                "fnDrawCallback": function() {
296
                "fnDrawCallback": function() {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt (-4 / +1 lines)
Lines 218-224 Link Here
218
        <th>Description (OPAC)</th>
218
        <th>Description (OPAC)</th>
219
        <th>Icon</th>
219
        <th>Icon</th>
220
        <th>Library limitations</th>
220
        <th>Library limitations</th>
221
        <th class="noExport">Actions</th>
221
        <th class="noExport NoSort">Actions</th>
222
        </tr>
222
        </tr>
223
    </thead><tbody>
223
    </thead><tbody>
224
    [% FOREACH loo IN loop %]
224
    [% FOREACH loo IN loop %]
Lines 317-325 Link Here
317
            var columns_settings = []; // Empty because there are no columns we want to be configurable
317
            var columns_settings = []; // Empty because there are no columns we want to be configurable
318
318
319
            KohaTable("categoriest", {
319
            KohaTable("categoriest", {
320
                "aoColumnDefs": [
321
                    { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
322
                ],
323
                "aaSorting": [[ 0, "asc" ]],
320
                "aaSorting": [[ 0, "asc" ]],
324
                "sPaginationType": "full"
321
                "sPaginationType": "full"
325
            }, columns_settings);
322
            }, columns_settings);
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt (-5 / +1 lines)
Lines 183-189 Link Here
183
            <th class="title-string">Last updated</th>
183
            <th class="title-string">Last updated</th>
184
            <th>Active</th>
184
            <th>Active</th>
185
            <th>Archived</th>
185
            <th>Archived</th>
186
            <th>Actions</th>
186
            <th class="NoSort">Actions</th>
187
        </tr>
187
        </tr>
188
      </thead>
188
      </thead>
189
      <tbody>
189
      <tbody>
Lines 249-258 Link Here
249
            columns_settings = [% TablesSettings.GetColumns( 'admin', 'currency', 'currencies-table', 'json' ) | $raw %]
249
            columns_settings = [% TablesSettings.GetColumns( 'admin', 'currency', 'currencies-table', 'json' ) | $raw %]
250
            var issuest = KohaTable("currencies-table", {
250
            var issuest = KohaTable("currencies-table", {
251
                dom: 'B<"clearfix">t',
251
                dom: 'B<"clearfix">t',
252
                "columnDefs": [
253
                    { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
254
                    { "sType": "title-string", "aTargets" : [ "title-string" ] }
255
                    ],
256
            }, columns_settings );
252
            }, columns_settings );
257
253
258
            // prevents users to check active with a currency != 1
254
            // prevents users to check active with a currency != 1
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt (-4 / +1 lines)
Lines 404-410 Item types administration Link Here
404
            <th>Processing fee (when lost)</th>
404
            <th>Processing fee (when lost)</th>
405
            <th>Checkin message</th>
405
            <th>Checkin message</th>
406
            <th>Library limitations</th>
406
            <th>Library limitations</th>
407
            <th class="noExport">Actions</th>
407
            <th class="noExport NoSort">Actions</th>
408
          </thead>
408
          </thead>
409
          [% FOREACH itemtype IN itemtypes %]
409
          [% FOREACH itemtype IN itemtypes %]
410
            <tr>
410
            <tr>
Lines 538-546 Item types administration Link Here
538
538
539
            $(document).ready(function() {
539
            $(document).ready(function() {
540
                KohaTable("table_item_type", {
540
                KohaTable("table_item_type", {
541
                    "aoColumnDefs": [
542
                        { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
543
                    ],
544
                "aaSorting": [[ 1, "asc" ]],
541
                "aaSorting": [[ 1, "asc" ]],
545
                "iDisplayLength": 10,
542
                "iDisplayLength": 10,
546
                "sPaginationType": "full"
543
                "sPaginationType": "full"
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-7 lines)
Lines 1233-1242 Note that permanent location is a code, and location may be an authval. Link Here
1233
                    'sDom': 't',
1233
                    'sDom': 't',
1234
                    'bPaginate': false,
1234
                    'bPaginate': false,
1235
                    'bAutoWidth': false,
1235
                    'bAutoWidth': false,
1236
                    "aoColumnDefs": [
1237
                        { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
1238
                        { "sType": "title-string", "aTargets" : [ "title-string" ] }
1239
                    ],
1240
                    "bKohaColumnsUseNames": true,
1236
                    "bKohaColumnsUseNames": true,
1241
                    "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
1237
                    "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
1242
                };
1238
                };
Lines 1250-1258 Note that permanent location is a code, and location may be an authval. Link Here
1250
                    'bPaginate': false,
1246
                    'bPaginate': false,
1251
                    'bAutoWidth': false,
1247
                    'bAutoWidth': false,
1252
                    "aaSorting": [[ 4, "desc" ]],
1248
                    "aaSorting": [[ 4, "desc" ]],
1253
                    "aoColumnDefs": [
1254
                        { "aTargets": "title-string", "sType": "title-string" }
1255
                    ]
1256
                }, columns_settings);
1249
                }, columns_settings);
1257
            [% END %]
1250
            [% END %]
1258
1251
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt (-3 lines)
Lines 116-124 Link Here
116
            columns_settings.splice(0,1);
116
            columns_settings.splice(0,1);
117
            [% END %]
117
            [% END %]
118
            var table = KohaTable("table_issues", {
118
            var table = KohaTable("table_issues", {
119
                "aoColumnDefs": [
120
                    { "sType": "title-string", "aTargets" : [ "title-string" ] }
121
                ],
122
                "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
119
                "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
123
                "aaSorting": [[ 4, "desc" ]],
120
                "aaSorting": [[ 4, "desc" ]],
124
                "sPaginationType": "full_numbers"
121
                "sPaginationType": "full_numbers"
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt (-1 / +1 lines)
Lines 51-57 Link Here
51
        <table id="itemst">
51
        <table id="itemst">
52
          <thead>
52
          <thead>
53
            <tr>
53
            <tr>
54
                <th>&nbsp;</th>
54
                <th class="NoSort">&nbsp;</th>
55
                [% FOREACH item_header IN item_header_loop %]
55
                [% FOREACH item_header IN item_header_loop %]
56
                    [% IF item_header.column_name %]
56
                    [% IF item_header.column_name %]
57
                        [% IF date_fields.grep(item_header.column_name).size %]
57
                        [% IF date_fields.grep(item_header.column_name).size %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tt (-1 lines)
Lines 245-251 Link Here
245
            var columns_settings = [% TablesSettings.GetColumns( 'cataloguing', 'z3950_search', 'resultst', 'json' ) | $raw %];
245
            var columns_settings = [% TablesSettings.GetColumns( 'cataloguing', 'z3950_search', 'resultst', 'json' ) | $raw %];
246
            var thetable = KohaTable("resultst", {
246
            var thetable = KohaTable("resultst", {
247
                "aoColumnDefs": [
247
                "aoColumnDefs": [
248
                    { "targets": [ "NoSort" ],"sortable": false,"searchable": false },
249
                    { "aTargets": [ 1 ], "sType": "nsb-nse" },
248
                    { "aTargets": [ 1 ], "sType": "nsb-nse" },
250
                ],
249
                ],
251
                "aaSorting": [[ 1, "asc" ]],
250
                "aaSorting": [[ 1, "asc" ]],
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt (-4 lines)
Lines 282-291 Link Here
282
            KohaTable("overduest", {
282
            KohaTable("overduest", {
283
                "sPaginationType": "full",
283
                "sPaginationType": "full",
284
                "aaSorting": [[0, 'asc']],
284
                "aaSorting": [[0, 'asc']],
285
                "aoColumnDefs": [
286
                    { "sType": "title-string", "aTargets": [ "title-string" ] },
287
                    { "sType": "anti-the", "aTargets" : [ "anti-the" ] }
288
                ],
289
                "autoWidth": false,
285
                "autoWidth": false,
290
                "stateSave": true
286
                "stateSave": true
291
            }, columns_settings);
287
            }, columns_settings);
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt (-5 lines)
Lines 250-260 Link Here
250
        $(document).ready(function() {
250
        $(document).ready(function() {
251
          var columns_settings = [% TablesSettings.GetColumns('circ', 'holds', 'holds-to-pull', 'json') | $raw %];
251
          var columns_settings = [% TablesSettings.GetColumns('circ', 'holds', 'holds-to-pull', 'json') | $raw %];
252
          var holdst = KohaTable("holdst", {
252
          var holdst = KohaTable("holdst", {
253
            "aoColumnDefs": [
254
                { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
255
                { "sType": "title-string", "aTargets" : [ "title-string" ] },
256
                { "sType": "string", "aTargets": [ "string-sort" ] }
257
            ],
258
            "sPaginationType": "full_numbers"
253
            "sPaginationType": "full_numbers"
259
          }, columns_settings);
254
          }, columns_settings);
260
          holdst.fnAddFilters("filter");
255
          holdst.fnAddFilters("filter");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tt (-5 / +2 lines)
Lines 50-56 Link Here
50
<table id="holdst">
50
<table id="holdst">
51
	<thead>
51
	<thead>
52
    <tr>
52
    <tr>
53
        <th class="hq-title">Title</th>
53
        <th class="hq-title anti-the">Title</th>
54
        <th class="hq-collection">Collection</th>
54
        <th class="hq-collection">Collection</th>
55
        <th class="hq-itemtype">Item type</th>
55
        <th class="hq-itemtype">Item type</th>
56
        <th class="hq-callnumber">Call number</th>
56
        <th class="hq-callnumber">Call number</th>
Lines 59-65 Link Here
59
        <th class="hq-barcode">Barcode</th>
59
        <th class="hq-barcode">Barcode</th>
60
        <th class="hq-patron">Patron</th>
60
        <th class="hq-patron">Patron</th>
61
        <th class="hq-sendto">Send to</th>
61
        <th class="hq-sendto">Send to</th>
62
        <th class="hq-date">Date</th>
62
        <th class="hq-date title-string">Date</th>
63
        <th class="hq-notes">Notes</th>
63
        <th class="hq-notes">Notes</th>
64
    </tr>
64
    </tr>
65
    <tr>
65
    <tr>
Lines 232-240 Link Here
232
            var columns_settings = [% TablesSettings.GetColumns('circ', 'view_holdsqueue', 'holds-table', 'json') | $raw %];
232
            var columns_settings = [% TablesSettings.GetColumns('circ', 'view_holdsqueue', 'holds-table', 'json') | $raw %];
233
            var holdst = KohaTable("holdst", {
233
            var holdst = KohaTable("holdst", {
234
                "aaSorting": [[ 3, "asc" ]],
234
                "aaSorting": [[ 3, "asc" ]],
235
                "aoColumns": [
236
                    { "sType": "anti-the" },null,null,null,null,null,null,null,null,{ "sType": "title-string" },null
237
                ],
238
                "sDom": 'B<"clearfix">t',
235
                "sDom": 'B<"clearfix">t',
239
                "bSortCellsTop": true,
236
                "bSortCellsTop": true,
240
                "bPaginate": false
237
                "bPaginate": false
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/waitingreserves.tt (-10 lines)
Lines 129-148 Link Here
129
        $(document).ready(function() {
129
        $(document).ready(function() {
130
130
131
            KohaTable("holdst", {
131
            KohaTable("holdst", {
132
                "aoColumnDefs": [
133
                    { "sortable": false, "searchable": false, 'targets': [ 'NoSort' ] },
134
                    { "type": "anti-the", "targets" : [ "anti-the" ] },
135
                    { "type": "title-string", "targets" : [ "title-string" ] }
136
                ],
137
                "sPaginationType": "full"
132
                "sPaginationType": "full"
138
            }, holdst_columns_settings);
133
            }, holdst_columns_settings);
139
134
140
            KohaTable("holdso", {
135
            KohaTable("holdso", {
141
                "aoColumnDefs": [
142
                    { "sortable": false, "searchable": false, 'targets': [ 'NoSort' ] },
143
                    { "type": "anti-the", "targets" : [ "anti-the" ] },
144
                    { "type": "title-string", "targets" : [ "title-string" ] }
145
                ],
146
                "sPaginationType": "full"
136
                "sPaginationType": "full"
147
            }, holdso_columns_settings);
137
            }, holdso_columns_settings);
148
138
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt (-5 / +1 lines)
Lines 77-83 Link Here
77
            <table id="course_reserves_table">
77
            <table id="course_reserves_table">
78
                <thead>
78
                <thead>
79
                    <tr>
79
                    <tr>
80
                        <th class="antithe">Title</th>
80
                        <th class="anti-the">Title</th>
81
                        <th>Author</th>
81
                        <th>Author</th>
82
                        <th>Barcode</th>
82
                        <th>Barcode</th>
83
                        <th>Call number</th>
83
                        <th>Call number</th>
Lines 277-286 Link Here
277
            var rtable = KohaTable("course_reserves_table", {
277
            var rtable = KohaTable("course_reserves_table", {
278
                "sPaginationType": "full",
278
                "sPaginationType": "full",
279
                "bAutoWidth": false,
279
                "bAutoWidth": false,
280
                "aoColumnDefs": [
281
                    { 'bSortable': false, 'aTargets': [ 'NoSort' ] },
282
                    { 'sType': "anti-the", 'aTargets' : [ 'antithe'] }
283
                ]
284
            }, columns_settings );
280
            }, columns_settings );
285
281
286
            $(".delete_item").click(function(){
282
            $(".delete_item").click(function(){
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt (-5 / +1 lines)
Lines 55-61 Link Here
55
          <th>Note</th>
55
          <th>Note</th>
56
          <th>Amount</th>
56
          <th>Amount</th>
57
          <th>Outstanding</th>
57
          <th>Outstanding</th>
58
          <th>Actions</th>
58
          <th class="NoSort">Actions</th>
59
        </tr>
59
        </tr>
60
    </thead>
60
    </thead>
61
61
Lines 318-327 Link Here
318
                "sPaginationType": "full",
318
                "sPaginationType": "full",
319
                'aaSorting': [[0, 'desc']],
319
                'aaSorting': [[0, 'desc']],
320
                "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
320
                "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
321
                "aoColumnDefs": [
322
                    { "sType": "title-string", "aTargets" : [ "title-string" ] },
323
                    { "bSortable": false, "bSearchable": false, "aTargets": [-1] }
324
                ]
325
            }, columns_settings);
321
            }, columns_settings);
326
            $("#filter_c").html('<p><a href="#" id="filter_transacs"><i class="fa fa-filter"></i> '+txtActivefilter+'</a>');
322
            $("#filter_c").html('<p><a href="#" id="filter_transacs"><i class="fa fa-filter"></i> '+txtActivefilter+'</a>');
327
            $('#filter_transacs').click(function(e) {
323
            $('#filter_transacs').click(function(e) {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/holdshistory.tt (-4 lines)
Lines 139-148 Link Here
139
                "sPaginationType": "full",
139
                "sPaginationType": "full",
140
                "aaSorting": [[4, 'desc']],
140
                "aaSorting": [[4, 'desc']],
141
                "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
141
                "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
142
                "aoColumnDefs": [
143
                    { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
144
                    { "sType": "title-string", "aTargets" : [ "title-string" ] }
145
                ]
146
            }, columns_settings);
142
            }, columns_settings);
147
        });
143
        });
148
    </script>
144
    </script>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt (-5 lines)
Lines 222-232 Link Here
222
222
223
            var columns_settings = [% TablesSettings.GetColumns('members', 'pay', 'pay-fines-table', 'json') | $raw %];
223
            var columns_settings = [% TablesSettings.GetColumns('members', 'pay', 'pay-fines-table', 'json') | $raw %];
224
            KohaTable("finest", {
224
            KohaTable("finest", {
225
                "columnDefs": [
226
                    { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
227
                    { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
228
                    { "sType": "title-string", "aTargets" : [ "title-string" ] }
229
                ],
230
                "paging": false,
225
                "paging": false,
231
                'sorting': [[ 3, "asc" ]],
226
                'sorting': [[ 3, "asc" ]],
232
                "autoWidth": false
227
                "autoWidth": false
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt (-4 lines)
Lines 136-145 Link Here
136
                "sPaginationType": "full",
136
                "sPaginationType": "full",
137
                "aaSorting": [[10, 'desc']],
137
                "aaSorting": [[10, 'desc']],
138
                "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
138
                "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
139
                "aoColumnDefs": [
140
                    { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
141
                    { "sType": "title-string", "aTargets" : [ "title-string" ] }
142
                ]
143
            }, columns_settings);
139
            }, columns_settings);
144
140
145
            var tabs = $("#tabs").tabs({
141
            var tabs = $("#tabs").tabs({
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/list.tt (-8 / +2 lines)
Lines 119-132 Link Here
119
            <table id="patron-list-table">
119
            <table id="patron-list-table">
120
                <thead>
120
                <thead>
121
                    <tr>
121
                    <tr>
122
                        <th>&nbsp;</th>
122
                        <th class="NoSort">&nbsp;</th>
123
                        <th>Card</th>
123
                        <th>Card</th>
124
                        <th>First name</th>
124
                        <th>First name</th>
125
                        <th>Surname</th>
125
                        <th>Surname</th>
126
                        <th>Address</th>
126
                        <th>Address</th>
127
                        <th>Category</th>
127
                        <th>Category</th>
128
                        <th>Library</th>
128
                        <th>Library</th>
129
                        <th>Expires on</th>
129
                        <th class="title-string">Expires on</th>
130
                        <th>Circ notes</th>
130
                        <th>Circ notes</th>
131
                    </tr>
131
                    </tr>
132
                </thead>
132
                </thead>
Lines 189-200 Link Here
189
                var columns_settings_table = [% TablesSettings.GetColumns('members', 'patron-lists', 'patron-list-table', 'json') | $raw %]
189
                var columns_settings_table = [% TablesSettings.GetColumns('members', 'patron-lists', 'patron-list-table', 'json') | $raw %]
190
                KohaTable('patron-list-table', {
190
                KohaTable('patron-list-table', {
191
                    "order": [[ 3, "asc" ]],
191
                    "order": [[ 3, "asc" ]],
192
                    "aoColumns": [
193
                        null,null,null,null,null,null,null,{ "sType": "title-string" },null
194
                    ],
195
                    "aoColumnDefs": [
196
                        { "aTargets": [ 0 ], "bSortable": false, "bSearchable": false },
197
                    ],
198
                    "sPaginationType": "full"
192
                    "sPaginationType": "full"
199
                }, columns_settings_table);
193
                }, columns_settings_table);
200
194
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt (-5 / +2 lines)
Lines 45-52 Link Here
45
                                <tr>
45
                                <tr>
46
                                    <th>Code</th>
46
                                    <th>Code</th>
47
                                    <th>Description</th>
47
                                    <th>Description</th>
48
                                    <th>Cost</th>
48
                                    <th class="NoSort">Cost</th>
49
                                    <th>Action</th>
49
                                    <th class="NoSort">Action</th>
50
                                </tr>
50
                                </tr>
51
                            </thead>
51
                            </thead>
52
                            <tbody>
52
                            <tbody>
Lines 335-343 Link Here
335
        var items_table = KohaTable("invoices", {
335
        var items_table = KohaTable("invoices", {
336
               "sPaginationType": "full",
336
               "sPaginationType": "full",
337
               "aaSorting": [[ 0, "asc" ]],
337
               "aaSorting": [[ 0, "asc" ]],
338
               "aoColumnDefs": [
339
                  { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable":false },
340
               ],
341
        }, items_columns_settings);
338
        }, items_columns_settings);
342
339
343
        $(".add_button").on("click", function(e) {
340
        $(".add_button").on("click", function(e) {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt (-4 / +2 lines)
Lines 217-223 Link Here
217
                                    <table id="table_reports">
217
                                    <table id="table_reports">
218
                                        <thead>
218
                                        <thead>
219
                                            <tr>
219
                                            <tr>
220
                                                <th>&nbsp;</th>
220
                                                <th class="NoSort">&nbsp;</th>
221
                                                <th>ID</th>
221
                                                <th>ID</th>
222
                                                <th>Report name</th>
222
                                                <th>Report name</th>
223
                                                <th>Type</th>
223
                                                <th>Type</th>
Lines 241-247 Link Here
241
                                                [% ELSE %]
241
                                                [% ELSE %]
242
                                                    <th class="hidden">&nbsp;</th>
242
                                                    <th class="hidden">&nbsp;</th>
243
                                                [% END %]
243
                                                [% END %]
244
                                                <th>Actions</th>
244
                                                <th class="NoSort">Actions</th>
245
                                            </tr>
245
                                            </tr>
246
                                        </thead>
246
                                        </thead>
247
                                        <tbody>
247
                                        <tbody>
Lines 1550-1559 Link Here
1550
                    'sPaginationType': 'full',
1550
                    'sPaginationType': 'full',
1551
                    'aaSorting': [[ 1, "asc" ]],
1551
                    'aaSorting': [[ 1, "asc" ]],
1552
                    'aoColumnDefs': [
1552
                    'aoColumnDefs': [
1553
                        { 'bSortable': false, 'bSearchable':false, 'aTargets': [0, -1] },
1554
                        { 'bSearchable': false, 'aTargets': [3] },
1553
                        { 'bSearchable': false, 'aTargets': [3] },
1555
                        { "aTargets": [ 1, 2 ], "sType": "natural"  },
1554
                        { "aTargets": [ 1, 2 ], "sType": "natural"  },
1556
                        { "sType": "title-string", "aTargets" : [ "title-string" ] },
1557
                        { "visible": false, "aTargets" : [ "hidden" ] }
1555
                        { "visible": false, "aTargets" : [ "hidden" ] }
1558
                    ],
1556
                    ],
1559
                    'oLanguage': {
1557
                    'oLanguage': {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/orders_by_budget.tt (-4 lines)
Lines 150-159 Link Here
150
        [% SET table_settings = TablesSettings.GetTableSettings( 'reports', 'orders_by_fund', 'funds-table' ) %];
150
        [% SET table_settings = TablesSettings.GetTableSettings( 'reports', 'orders_by_fund', 'funds-table' ) %];
151
        $(document).ready( function () {
151
        $(document).ready( function () {
152
            var funds_table = KohaTable("funds", {
152
            var funds_table = KohaTable("funds", {
153
                "columnDefs": [
154
                    { "sortable": false, "searchable": false, 'targets': [ 'NoSort' ] },
155
                    { "type": "title-string", "targets" : [ "title-string" ] }
156
                ],
157
                "pageLength": [% table_settings.default_display_length | html %],
153
                "pageLength": [% table_settings.default_display_length | html %],
158
                "order": [[ [% table_settings.default_sort_order | html %], 'asc']],
154
                "order": [[ [% table_settings.default_sort_order | html %], 'asc']],
159
                'autoWidth': false,
155
                'autoWidth': false,
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tt (-1 lines)
Lines 518-524 Link Here
518
                "aoColumnDefs": [
518
                "aoColumnDefs": [
519
                    { "bVisible": false, "aTargets": [ 'NoVisible' ] },
519
                    { "bVisible": false, "aTargets": [ 'NoVisible' ] },
520
                    { "bSortable": false, "aTargets": ["_all"] },
520
                    { "bSortable": false, "aTargets": ["_all"] },
521
                    { "aTargets": "title-string", "sType": "title-string" }
522
                ],
521
                ],
523
522
524
                'bPaginate': false,
523
                'bPaginate': false,
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt (-4 lines)
Lines 1010-1019 Link Here
1010
                        KohaTable("table_[% loop.count| html %]", {
1010
                        KohaTable("table_[% loop.count| html %]", {
1011
                            "sorting": [[ 1, "asc" ]],
1011
                            "sorting": [[ 1, "asc" ]],
1012
                            "autoWidth": false,
1012
                            "autoWidth": false,
1013
                            "columnDefs": [
1014
                                { "sortable": false, "searchable": false, 'targets': [ 'NoSort' ] },
1015
                                { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
1016
                            ]
1017
                        }, columns_settings );
1013
                        }, columns_settings );
1018
                    [% END %]
1014
                    [% END %]
1019
                [% END %]
1015
                [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/js/cataloging_additem.js (-3 lines)
Lines 45-53 $(document).ready(function(){ Link Here
45
    columns_settings.unshift( { cannot_be_toggled: "1" } );
45
    columns_settings.unshift( { cannot_be_toggled: "1" } );
46
46
47
    var itemst = KohaTable("itemst", {
47
    var itemst = KohaTable("itemst", {
48
        "aoColumnDefs": [
49
            { "aTargets": [ 0 ], "bSortable": false, "bSearchable": false },
50
        ],
51
        'bPaginate': false,
48
        'bPaginate': false,
52
        'bInfo': false,
49
        'bInfo': false,
53
        "bAutoWidth": false,
50
        "bAutoWidth": false,
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-details.tt (-4 lines)
Lines 116-125 Link Here
116
            "dom": '<"top"flp>rt<"clear">',
116
            "dom": '<"top"flp>rt<"clear">',
117
            "sorting": [[ 1, "asc" ]],
117
            "sorting": [[ 1, "asc" ]],
118
            "autoWidth": false,
118
            "autoWidth": false,
119
            "asColumnDefs": [
120
                { "type": "anti-the", "targets" : [ "anti-the" ] },
121
                { "type": "title-string", "targets" : [ "title-string" ] },
122
            ]
123
        }, columns_settings );
119
        }, columns_settings );
124
    });
120
    });
125
    </script>
121
    </script>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-reserves.tt (-2 lines)
Lines 76-83 Link Here
76
            "sorting": [[ 1, "asc" ]],
76
            "sorting": [[ 1, "asc" ]],
77
            "autoWidth": false,
77
            "autoWidth": false,
78
            "asColumnDefs": [
78
            "asColumnDefs": [
79
                { "sortable": false, "searchable": false, 'targets': [ 'NoSort' ] },
80
                { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
81
                { "aTargets": [ 1 ], "sType": "nsb-nse" },
79
                { "aTargets": [ 1 ], "sType": "nsb-nse" },
82
            ]
80
            ]
83
        }, columns_settings );
81
        }, columns_settings );
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt (-6 lines)
Lines 1476-1482 Link Here
1476
            dom: '<"clearfix">t',
1476
            dom: '<"clearfix">t',
1477
            "columnDefs": [
1477
            "columnDefs": [
1478
                { "targets": [ -1 ], "sortable": false, "searchable": false },
1478
                { "targets": [ -1 ], "sortable": false, "searchable": false },
1479
                { "type": "title-string", "targets" : [ "title-string" ] }
1480
                ],
1479
                ],
1481
            "bKohaColumnsUseNames": true,
1480
            "bKohaColumnsUseNames": true,
1482
            "autoWidth": false
1481
            "autoWidth": false
Lines 1486-1492 Link Here
1486
            dom: '<"clearfix">t',
1485
            dom: '<"clearfix">t',
1487
            "columnDefs": [
1486
            "columnDefs": [
1488
                { "targets": [ -1 ], "sortable": false, "searchable": false },
1487
                { "targets": [ -1 ], "sortable": false, "searchable": false },
1489
                { "type": "title-string", "targets" : [ "title-string" ] }
1490
                ],
1488
                ],
1491
            "bKohaColumnsUseNames": true,
1489
            "bKohaColumnsUseNames": true,
1492
            "autoWidth": false
1490
            "autoWidth": false
Lines 1497-1505 Link Here
1497
        KohaTable("#subscriptionst", {
1495
        KohaTable("#subscriptionst", {
1498
            dom: '<"clearfix">t',
1496
            dom: '<"clearfix">t',
1499
            "sorting": [[ 1, "desc" ]],
1497
            "sorting": [[ 1, "desc" ]],
1500
            "columnDefs": [
1501
                { "type": "title-string", "targets" : [ "title-string" ] }
1502
                ],
1503
            "autoWidth": false,
1498
            "autoWidth": false,
1504
            "bKohaColumnsUseNames": true
1499
            "bKohaColumnsUseNames": true
1505
        }, serial_column_settings);
1500
        }, serial_column_settings);
1506
- 

Return to bug 26234