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(); }
|
if ( c.debug && console.groupEnd ) { console.groupEnd(); }
|
||||||
// callback executed on init only
|
|
||||||
if ( !init && typeof callback === 'function' ) {
|
|
||||||
callback( table );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
c.timerReady = setTimeout( function() {
|
c.timerReady = setTimeout( function() {
|
||||||
table.isApplyingWidgets = false;
|
table.isApplyingWidgets = false;
|
||||||
$.data( table, 'lastWidgetApplication', new Date() );
|
$.data( table, 'lastWidgetApplication', new Date() );
|
||||||
c.$table.triggerHandler( 'tablesorter-ready' );
|
c.$table.triggerHandler( 'tablesorter-ready' );
|
||||||
}, 10 );
|
// callback executed on init only
|
||||||
|
if ( !init && typeof callback === 'function' ) {
|
||||||
|
callback( table );
|
||||||
|
}
|
||||||
if ( c.debug ) {
|
if ( c.debug ) {
|
||||||
widget = c.widgets.length;
|
widget = c.widgets.length;
|
||||||
console.log( 'Completed ' +
|
console.log( 'Completed ' +
|
||||||
( init === true ? 'initializing ' : 'applying ' ) + widget +
|
( init === true ? 'initializing ' : 'applying ' ) + widget +
|
||||||
' widget' + ( widget !== 1 ? 's' : '' ) + ts.benchmark( time ) );
|
' widget' + ( widget !== 1 ? 's' : '' ) + ts.benchmark( time ) );
|
||||||
}
|
}
|
||||||
|
}, 10 );
|
||||||
},
|
},
|
||||||
|
|
||||||
removeWidget : function( table, name, refreshing ) {
|
removeWidget : function( table, name, refreshing ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user