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 801-814 jQuery.fn.dataTable.ext.errMode = function(settings, note, message) { Link Here
801
801
802
        var table = $(this).dataTable(settings);
802
        var table = $(this).dataTable(settings);
803
803
804
        table.DataTable().on("column-visibility.dt", function(){
805
            if( typeof columnsInit == 'function' ){
806
                // This function can be created separately and used to trigger
807
                // an event after the DataTable has loaded AND column visibility
808
                // has been updated according to the table's configuration
809
                columnsInit();
810
            }
811
        }).columns( hidden_ids ).visible( false );
812
804
813
        if ( add_filters ) {
805
        if ( add_filters ) {
814
            var table_dt = table.DataTable();
806
            var table_dt = table.DataTable();
Lines 863-868 jQuery.fn.dataTable.ext.errMode = function(settings, note, message) { Link Here
863
            } );
855
            } );
864
        }
856
        }
865
857
858
        table.DataTable().on("column-visibility.dt", function(){
859
            if( typeof columnsInit == 'function' ){
860
                // This function can be created separately and used to trigger
861
                // an event after the DataTable has loaded AND column visibility
862
                // has been updated according to the table's configuration
863
                columnsInit();
864
            }
865
        }).columns( hidden_ids ).visible( false );
866
866
        return table;
867
        return table;
867
    };
868
    };
868
869
869
- 

Return to bug 30406