From d0010fd697e565397b6f2c285a60d240432e2c33 Mon Sep 17 00:00:00 2001 From: Campbell Allen Date: Thu, 13 Jun 2013 13:14:43 +0100 Subject: [PATCH] skip ajax request on sort event if serverSideSorting is disabled --- addons/pager/jquery.tablesorter.pager.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/addons/pager/jquery.tablesorter.pager.js b/addons/pager/jquery.tablesorter.pager.js index 105e3cff..71e21e36 100644 --- a/addons/pager/jquery.tablesorter.pager.js +++ b/addons/pager/jquery.tablesorter.pager.js @@ -513,7 +513,10 @@ $.data(table, 'pagerUpdateTriggered', false); return; } - moveToPage(table, c, false); + //only run the server side sorting if it has been enabled + if (e.type === "filterEnd" || (e.type === "sortEnd" && tc.serverSideSorting)) { + moveToPage(table, c, false); + } updatePageDisplay(table, c, false); fixHeight(table, c); })