Stop stickyheader scrolling to top after sort

This commit is contained in:
Mottie 2014-02-21 17:26:43 -06:00
parent 5d0a109efb
commit 8cab08da37

View File

@ -571,7 +571,7 @@ ts.filter = {
} else {
// send false argument to force a new search; otherwise if the filter hasn't changed, it will return
filter = event.type === 'search' ? filter : event.type === 'updateComplete' ? c.$table.data('lastSearch') : '';
if (/(update|add)/.test(event.type)) {
if (/(update|add)/.test(event.type) && event.type !== "updateComplete") {
// force a new search since content has changed
c.lastCombinedFilter = null;
}