Pager: update display before applying widgets

This commit is contained in:
Mottie 2015-02-05 13:46:45 -06:00
parent fe81a867fc
commit 6962d31302
2 changed files with 5 additions and 0 deletions

View File

@ -473,6 +473,7 @@
p.last.totalRows = p.totalRows;
p.last.currentFilters = p.currentFilters;
p.last.sortList = (c.sortList || []).join(',');
updatePageDisplay(table, p, false);
$t.trigger('updateCache', [function(){
if (p.initialized) {
// apply widgets after table has rendered & after a delay to prevent

View File

@ -278,6 +278,8 @@ tsp = ts.pager = {
}
tsp.hideRows(table, c);
tsp.changeHeight(table, c);
// update without triggering pagerComplete
tsp.updatePageDisplay(table, c, false);
// make sure widgets are applied - fixes #450
c.$table.trigger('applyWidgets');
tsp.updatePageDisplay(table, c);
@ -708,6 +710,8 @@ tsp = ts.pager = {
p.last.currentFilters = p.currentFilters;
p.last.sortList = (c.sortList || []).join(',');
p.initializing = false;
// update display without triggering pager complete... before updating cache
tsp.updatePageDisplay(table, c, false);
$t.trigger('updateCache', [function(){
if (p.initialized) {
// apply widgets after table has rendered & after a delay to prevent