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 / +8 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 920-924 Link Here
920
            node.textContent = link_text;
919
            node.textContent = link_text;
921
            return node;
920
            return node;
922
        }
921
        }
922
923
        $('a[data-bs-toggle="tab"]').on('shown.bs.tab', function (e) {
924
            const table = $(e.target).attr('href').replace('_panel' , '_table');
925
            const selector = $(table);
926
            if ($.fn.DataTable.isDataTable(selector)) {
927
                selector.DataTable().columns.adjust().draw(false);
928
            }
929
        });
923
    </script>
930
    </script>
924
[% END %]
931
[% END %]
925
- 

Return to bug 39634