tablesorter icon indicating copy to clipboard operation
tablesorter copied to clipboard

Table sorter adds rows when sorting after post

Open AbeHandler opened this issue 11 years ago • 1 comments

I have a web app that uses table sorter. If I perform search #1 (filling a form and posting to refill rows w/ ajax) and then perform search #2 (a new search, posting for new rows w/ ajax) and then click a column header to sort the rows -- then after sorting, some of the rows from search #1 re appear in the table! I think javascript has stored these rows some how and refills them after search.

AbeHandler avatar Jul 23 '14 22:07 AbeHandler

Trigger an update immediately after each ajax load. Put this in your success or complete function: $("#MyTable").trigger("update");

ookabunga avatar Jul 26 '14 02:07 ookabunga