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

(-)a/admin/columns_settings.yml (+2 lines)
Lines 237-242 modules: Link Here
237
237
238
    categories:
238
    categories:
239
      patron_categories:
239
      patron_categories:
240
        default_display_length: 20
241
        default_sort_order: 1
240
        columns:
242
        columns:
241
            -
243
            -
242
              columnname: code
244
              columnname: code
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt (-1 / +1 lines)
Lines 691-697 Link Here
691
    [% INCLUDE 'datatables.inc' %]
691
    [% INCLUDE 'datatables.inc' %]
692
    [% INCLUDE 'columns_settings.inc' %]
692
    [% INCLUDE 'columns_settings.inc' %]
693
    <script>
693
    <script>
694
        var columns_settings = [% TablesSettings.GetColumns( 'admin', 'categories', 'patron_categories', 'json' ) | $raw %];
694
        var table_settings = [% TablesSettings.GetTableSettings( 'admin', 'categories', 'patron_categories', 'json' ) | $raw %];
695
    </script>
695
    </script>
696
    [% Asset.js("js/categories.js") | $raw %]
696
    [% Asset.js("js/categories.js") | $raw %]
697
[% END %]
697
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/js/categories.js (-5 / +1 lines)
Lines 31-42 $(document).ready(function() { Link Here
31
            "aTargets": [3, 4, 5],
31
            "aTargets": [3, 4, 5],
32
            "sType": "natural"
32
            "sType": "natural"
33
        }, ],
33
        }, ],
34
        "aaSorting": [
35
            [1, "asc"]
36
        ],
37
        "sPaginationType": "full",
34
        "sPaginationType": "full",
38
        "exportColumns": [0,1,2,3,4,5,6,7,8,9,10,11,12],
35
        "exportColumns": [0,1,2,3,4,5,6,7,8,9,10,11,12],
39
    }, columns_settings);
36
    }, table_settings);
40
37
41
    if ($("#branches option:selected").length < 1) {
38
    if ($("#branches option:selected").length < 1) {
42
        $("#branches option:first").attr("selected", "selected");
39
        $("#branches option:first").attr("selected", "selected");
43
- 

Return to bug 29648