From 8ad625b45b4804786e446b8396f83c666f573c89 Mon Sep 17 00:00:00 2001 From: Mottie Date: Fri, 31 Oct 2014 12:35:05 -0500 Subject: [PATCH] Pager: updateComplete fires again on non-ajax tables --- addons/pager/jquery.tablesorter.pager.js | 2 +- js/widgets/widget-pager.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/pager/jquery.tablesorter.pager.js b/addons/pager/jquery.tablesorter.pager.js index 539f98f7..7c31584f 100644 --- a/addons/pager/jquery.tablesorter.pager.js +++ b/addons/pager/jquery.tablesorter.pager.js @@ -604,7 +604,7 @@ } ts.processTbody(table, $tb, false); } - updatePageDisplay(table, p, false); + updatePageDisplay(table, p); if (table.isUpdating) { $t.trigger('updateComplete', [ table, true ]); } diff --git a/js/widgets/widget-pager.js b/js/widgets/widget-pager.js index 8bc17873..39f29ff5 100644 --- a/js/widgets/widget-pager.js +++ b/js/widgets/widget-pager.js @@ -825,7 +825,7 @@ tsp = ts.pager = { ts.processTbody(table, $tb, false); } - tsp.updatePageDisplay(table, c, false); + tsp.updatePageDisplay(table, c); wo.pager_startPage = p.page; wo.pager_size = p.size;