skip ajax request on sort event if serverSideSorting is disabled

This commit is contained in:
Campbell Allen 2013-06-13 13:14:43 +01:00
parent 74f296adff
commit d0010fd697

View File

@ -513,7 +513,10 @@
$.data(table, 'pagerUpdateTriggered', false); $.data(table, 'pagerUpdateTriggered', false);
return; 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); updatePageDisplay(table, c, false);
fixHeight(table, c); fixHeight(table, c);
}) })