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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc (-1 / +3 lines)
Lines 275-286 Link Here
275
    function build_items_table (tab_id, add_filters, dt_options, drawcallback) {
275
    function build_items_table (tab_id, add_filters, dt_options, drawcallback) {
276
276
277
        if ( dt_options && dt_options.hasOwnProperty('destroy') ) {
277
        if ( dt_options && dt_options.hasOwnProperty('destroy') ) {
278
            // Keep a copy of the user settings, the destroy is going to trigger the column-visibility.dt event for all columns
279
            let user_colvis_bak= Object.assign({}, user_colvis[tab_id]);
278
            let table_id = "#"+tab_id+"_table";
280
            let table_id = "#"+tab_id+"_table";
279
            if( $.fn.dataTable.isDataTable(table_id) ) {
281
            if( $.fn.dataTable.isDataTable(table_id) ) {
280
                $(table_id).DataTable().destroy();
282
                $(table_id).DataTable().destroy();
281
            }
283
            }
282
            $(table_id).replaceWith(table_nodes[tab_id]);
284
            $(table_id).replaceWith(table_nodes[tab_id]);
283
            dt_options['destroy'] = null;
285
            dt_options['destroy'] = null;
286
            user_colvis[tab_id] = user_colvis_bak;
284
        }
287
        }
285
        let default_filters = {};
288
        let default_filters = {};
286
        [% IF Koha.Preference('SeparateHoldings') %]
289
        [% IF Koha.Preference('SeparateHoldings') %]
287
- 

Return to bug 38632