Update cache after ajax. Fixes #436 & #437

This commit is contained in:
Mottie 2013-12-12 18:46:45 -06:00
parent 5a1c22a349
commit 404567f533
2 changed files with 12 additions and 12 deletions

View File

@ -330,12 +330,12 @@
fixHeight(table, p);
// apply widgets after table has rendered
$t.trigger('applyWidgets');
if (p.initialized) {
$t.trigger('pagerChange', p);
$t.trigger('updateComplete');
} else {
$t.trigger('update');
}
$t.trigger('update', [false, function(){
if (p.initialized) {
$t.trigger('updateComplete');
$t.trigger('pagerChange', p);
}
}]);
}
if (!p.initialized) {
p.initialized = true;

View File

@ -516,12 +516,12 @@ tsp = ts.pager = {
tsp.fixHeight(table, c);
// apply widgets after table has rendered
$t.trigger('applyWidgets');
if (p.initialized) {
$t.trigger('pagerChange', c);
$t.trigger('updateComplete');
} else {
$t.trigger('update');
}
$t.trigger('update', [false, function(){
if (p.initialized) {
$t.trigger('updateComplete');
$t.trigger('pagerChange', p);
}
}]);
}
if (!p.initialized) {
p.initialized = true;