mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
skip ajax request on sort event if serverSideSorting is disabled
This commit is contained in:
parent
74f296adff
commit
d0010fd697
@ -513,7 +513,10 @@
|
|||||||
$.data(table, 'pagerUpdateTriggered', false);
|
$.data(table, 'pagerUpdateTriggered', false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
//only run the server side sorting if it has been enabled
|
||||||
|
if (e.type === "filterEnd" || (e.type === "sortEnd" && tc.serverSideSorting)) {
|
||||||
moveToPage(table, c, false);
|
moveToPage(table, c, false);
|
||||||
|
}
|
||||||
updatePageDisplay(table, c, false);
|
updatePageDisplay(table, c, false);
|
||||||
fixHeight(table, c);
|
fixHeight(table, c);
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user