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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc (-2 / +9 lines)
Lines 288-294 Link Here
288
            otherholdings: "[% PROCESS 'build_table' tab="otherholdings" | collapse | $tojson %]",
288
            otherholdings: "[% PROCESS 'build_table' tab="otherholdings" | collapse | $tojson %]",
289
        };
289
        };
290
        function build_items_table (tab_id, add_filters, dt_options, drawcallback) {
290
        function build_items_table (tab_id, add_filters, dt_options, drawcallback) {
291
292
            let table_dt;
291
            let table_dt;
293
            if ( dt_options && dt_options.hasOwnProperty('destroy') ) {
292
            if ( dt_options && dt_options.hasOwnProperty('destroy') ) {
294
                // Keep a copy of the user settings, the destroy is going to trigger the column-visibility.dt event for all columns
293
                // Keep a copy of the user settings, the destroy is going to trigger the column-visibility.dt event for all columns
Lines 842-847 Link Here
842
                ],
841
                ],
843
                initComplete: function( settings, json ){
842
                initComplete: function( settings, json ){
844
                    itemSelectionBuildActionLinks(tab_id);
843
                    itemSelectionBuildActionLinks(tab_id);
844
                    //api.columns.adjust().draw(false);
845
                },
845
                },
846
                drawCallback: function(settings){
846
                drawCallback: function(settings){
847
                    let api = this.api();
847
                    let api = this.api();
Lines 920-924 Link Here
920
            node.textContent = link_text;
920
            node.textContent = link_text;
921
            return node;
921
            return node;
922
        }
922
        }
923
924
        $('a[data-bs-toggle="tab"]').on('shown.bs.tab', function (e) {
925
            const table = $(e.target).attr('href').replace('_panel' , '_table');
926
            const selector = $(table);
927
            if ($.fn.DataTable.isDataTable(selector)) {
928
                selector.DataTable().columns.adjust().draw(false);
929
            }
930
        });
923
    </script>
931
    </script>
924
[% END %]
932
[% END %]
925
- 

Return to bug 39634