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

(-)a/admin/columns_settings.yml (+2 lines)
Lines 247-252 modules: Link Here
247
247
248
    itemtypes:
248
    itemtypes:
249
      table_item_type:
249
      table_item_type:
250
        default_display_length: 10
251
        default_sort_order: 1
250
        columns:
252
        columns:
251
            -
253
            -
252
              columnname: image
254
              columnname: image
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt (-6 / +3 lines)
Lines 590-606 Item types › Administration › Koha Link Here
590
    <script>
590
    <script>
591
         $(document).ready(function() {
591
         $(document).ready(function() {
592
            $('#icons').tabs();
592
            $('#icons').tabs();
593
            var columns_settings = [% TablesSettings.GetColumns( 'admin', 'itemtypes', 'table_item_type', 'json' ) | $raw %];
593
            var table_settings = [% TablesSettings.GetTableSettings( 'admin', 'itemtypes', 'table_item_type', 'json' ) | $raw %];
594
            [% IF ( Koha.Preference('noItemTypeImages') && Koha.Preference('OpacNoItemTypeImages') ) %]
594
            [% IF ( Koha.Preference('noItemTypeImages') && Koha.Preference('OpacNoItemTypeImages') ) %]
595
                columns_settings.shift(); // Remove item type image column from configuration
595
                table_settings['columns'].shift(); // Remove item type image column from configuration
596
            [% END %]
596
            [% END %]
597
597
598
            $(document).ready(function() {
598
            $(document).ready(function() {
599
                KohaTable("table_item_type", {
599
                KohaTable("table_item_type", {
600
                "aaSorting": [[ 1, "asc" ]],
601
                "iDisplayLength": 10,
602
                "sPaginationType": "full"
600
                "sPaginationType": "full"
603
                }, columns_settings);
601
                }, table_settings);
604
            });
602
            });
605
603
606
            $( "#itemtypeentry" ).validate({
604
            $( "#itemtypeentry" ).validate({
607
- 

Return to bug 29648