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

(-)a/admin/columns_settings.yml (+2 lines)
Lines 275-280 modules: Link Here
275
275
276
    itemtypes:
276
    itemtypes:
277
      table_item_type:
277
      table_item_type:
278
        default_display_length: 10
279
        default_sort_order: 1
278
        columns:
280
        columns:
279
            -
281
            -
280
              columnname: image
282
              columnname: image
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt (-6 / +3 lines)
Lines 613-629 Item types › Administration › Koha Link Here
613
    [% INCLUDE 'columns_settings.inc' %]
613
    [% INCLUDE 'columns_settings.inc' %]
614
    <script>
614
    <script>
615
         $(document).ready(function() {
615
         $(document).ready(function() {
616
            var columns_settings = [% TablesSettings.GetColumns( 'admin', 'itemtypes', 'table_item_type', 'json' ) | $raw %];
616
            var table_settings = [% TablesSettings.GetTableSettings( 'admin', 'itemtypes', 'table_item_type', 'json' ) | $raw %];
617
            [% IF ( Koha.Preference('noItemTypeImages') && Koha.Preference('OpacNoItemTypeImages') ) %]
617
            [% IF ( Koha.Preference('noItemTypeImages') && Koha.Preference('OpacNoItemTypeImages') ) %]
618
                columns_settings.shift(); // Remove item type image column from configuration
618
                table_settings['columns'].shift(); // Remove item type image column from configuration
619
            [% END %]
619
            [% END %]
620
620
621
            $(document).ready(function() {
621
            $(document).ready(function() {
622
                KohaTable("table_item_type", {
622
                KohaTable("table_item_type", {
623
                "aaSorting": [[ 1, "asc" ]],
624
                "iDisplayLength": 10,
625
                "sPaginationType": "full"
623
                "sPaginationType": "full"
626
                }, columns_settings);
624
                }, table_settings);
627
            });
625
            });
628
626
629
            $( "#itemtypeentry" ).validate({
627
            $( "#itemtypeentry" ).validate({
630
- 

Return to bug 29648