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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt (-4 / +6 lines)
Lines 268-274 Link Here
268
            <tr>
268
            <tr>
269
                <th>Category</th>
269
                <th>Category</th>
270
                <th>Description</th>
270
                <th>Description</th>
271
                <th>&nbsp;</th>
271
                <th class="noExport">&nbsp;</th>
272
            </tr>
272
            </tr>
273
        </thead>
273
        </thead>
274
        <tbody>
274
        <tbody>
Lines 302-316 Link Here
302
[% MACRO jsinclude BLOCK %]
302
[% MACRO jsinclude BLOCK %]
303
    [% Asset.js("js/admin-menu.js") | $raw %]
303
    [% Asset.js("js/admin-menu.js") | $raw %]
304
    [% INCLUDE 'datatables.inc' %]
304
    [% INCLUDE 'datatables.inc' %]
305
    [% INCLUDE 'columns_settings.inc' %]
305
    <script>
306
    <script>
306
        $(document).ready(function() {
307
        $(document).ready(function() {
307
            $(".authorized_values_table").dataTable($.extend(true, {}, dataTablesDefaults, {
308
            var columns_settings = []; // Empty because there are no columns we want to be configurable
309
310
            KohaTable("categoriest", {
308
                "aoColumnDefs": [
311
                "aoColumnDefs": [
309
                    { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
312
                    { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
310
                ],
313
                ],
311
                "aaSorting": [[ 0, "asc" ]],
314
                "aaSorting": [[ 0, "asc" ]],
312
                "sPaginationType": "full"
315
                "sPaginationType": "full"
313
            }));
316
            }, columns_settings);
314
317
315
            if ( $("#branches option:selected").length < 1 ) {
318
            if ( $("#branches option:selected").length < 1 ) {
316
                $("#branches option:first").attr("selected", "selected");
319
                $("#branches option:first").attr("selected", "selected");
317
- 

Return to bug 23611