Paging breaking with tablesorter plugin
===

I have a dynamic table generated with the tablesorter plugin. 

On run1 say I have 100 rows paged for 20 rows each so 5 pages.

On run2 when i get 60 rows pages for 20 rows each, I hit the next button and it throws an error. the  c.totalpages in is not refreshing with the new value of 3 pages. instead it shows the old value of 5 even though the table has refreshed.

Also I tried using $('.tablesorter').trigger("update"); still no change. pls suggest other options to refresh the table config with new values