mirror of
https://github.com/Mottie/tablesorter.git
synced 2025-01-12 15:24:21 +00:00
Core: applyWidget callback occurs after "tablesorter-ready"
This commit is contained in:
parent
5e784174ec
commit
196bfd2d11
@ -2056,22 +2056,22 @@
|
||||
}
|
||||
}
|
||||
if ( c.debug && console.groupEnd ) { console.groupEnd(); }
|
||||
// callback executed on init only
|
||||
if ( !init && typeof callback === 'function' ) {
|
||||
callback( table );
|
||||
}
|
||||
}
|
||||
c.timerReady = setTimeout( function() {
|
||||
table.isApplyingWidgets = false;
|
||||
$.data( table, 'lastWidgetApplication', new Date() );
|
||||
c.$table.triggerHandler( 'tablesorter-ready' );
|
||||
// callback executed on init only
|
||||
if ( !init && typeof callback === 'function' ) {
|
||||
callback( table );
|
||||
}
|
||||
if ( c.debug ) {
|
||||
widget = c.widgets.length;
|
||||
console.log( 'Completed ' +
|
||||
( init === true ? 'initializing ' : 'applying ' ) + widget +
|
||||
' widget' + ( widget !== 1 ? 's' : '' ) + ts.benchmark( time ) );
|
||||
}
|
||||
}, 10 );
|
||||
if ( c.debug ) {
|
||||
widget = c.widgets.length;
|
||||
console.log( 'Completed ' +
|
||||
( init === true ? 'initializing ' : 'applying ' ) + widget +
|
||||
' widget' + ( widget !== 1 ? 's' : '' ) + ts.benchmark( time ) );
|
||||
}
|
||||
},
|
||||
|
||||
removeWidget : function( table, name, refreshing ) {
|
||||
|
Loading…
Reference in New Issue
Block a user