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); fixHeight(table, p);
// apply widgets after table has rendered // apply widgets after table has rendered
$t.trigger('applyWidgets'); $t.trigger('applyWidgets');
if (p.initialized) { $t.trigger('update', [false, function(){
$t.trigger('pagerChange', p); if (p.initialized) {
$t.trigger('updateComplete'); $t.trigger('updateComplete');
} else { $t.trigger('pagerChange', p);
$t.trigger('update'); }
} }]);
} }
if (!p.initialized) { if (!p.initialized) {
p.initialized = true; p.initialized = true;

View File

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