mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
updateComplete should now fire properly, after an ansynchronous ajax call. Fixes #343
This commit is contained in:
parent
7bda49a170
commit
29c5bf4a4d
@ -300,6 +300,7 @@
|
|||||||
fixHeight(table, p);
|
fixHeight(table, p);
|
||||||
if (p.initialized) {
|
if (p.initialized) {
|
||||||
$t.trigger('pagerChange', p);
|
$t.trigger('pagerChange', p);
|
||||||
|
$t.trigger('updateComplete');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!p.initialized) {
|
if (!p.initialized) {
|
||||||
|
@ -664,7 +664,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function resortComplete($table, callback){
|
function resortComplete($table, callback){
|
||||||
$table.trigger('updateComplete');
|
var c = $table[0].config;
|
||||||
|
if (c.pager && !c.pager.ajax) {
|
||||||
|
$table.trigger('updateComplete');
|
||||||
|
}
|
||||||
if (typeof callback === "function") {
|
if (typeof callback === "function") {
|
||||||
callback($table[0]);
|
callback($table[0]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user