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

(-)a/koha-tmpl/intranet-tmpl/prog/js/datatables.js (-9 / +9 lines)
Lines 761-774 jQuery.fn.dataTable.ext.errMode = function(settings, note, message) { Link Here
761
761
762
        var table = $(this).dataTable(settings);
762
        var table = $(this).dataTable(settings);
763
763
764
        table.DataTable().on("column-visibility.dt", function(){
765
            if( typeof columnsInit == 'function' ){
766
                // This function can be created separately and used to trigger
767
                // an event after the DataTable has loaded AND column visibility
768
                // has been updated according to the table's configuration
769
                columnsInit();
770
            }
771
        }).columns( hidden_ids ).visible( false );
772
764
773
        if ( add_filters ) {
765
        if ( add_filters ) {
774
            var table_dt = table.DataTable();
766
            var table_dt = table.DataTable();
Lines 798-803 jQuery.fn.dataTable.ext.errMode = function(settings, note, message) { Link Here
798
            } );
790
            } );
799
        }
791
        }
800
792
793
        table.DataTable().on("column-visibility.dt", function(){
794
            if( typeof columnsInit == 'function' ){
795
                // This function can be created separately and used to trigger
796
                // an event after the DataTable has loaded AND column visibility
797
                // has been updated according to the table's configuration
798
                columnsInit();
799
            }
800
        }).columns( hidden_ids ).visible( false );
801
801
        return table;
802
        return table;
802
    };
803
    };
803
804
804
- 

Return to bug 30406