updateComplete should now fire properly, after an ansynchronous ajax call. Fixes #343

This commit is contained in:
Mottie 2013-10-08 18:52:57 -05:00
parent 7bda49a170
commit 29c5bf4a4d
2 changed files with 5 additions and 1 deletions

View File

@ -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) {

View File

@ -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]);
} }