From 8cab08da379f18fcb09b96425497ad367a5b1971 Mon Sep 17 00:00:00 2001 From: Mottie Date: Fri, 21 Feb 2014 17:26:43 -0600 Subject: [PATCH] Stop stickyheader scrolling to top after sort --- js/jquery.tablesorter.widgets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/jquery.tablesorter.widgets.js b/js/jquery.tablesorter.widgets.js index b78f4790..1deed171 100644 --- a/js/jquery.tablesorter.widgets.js +++ b/js/jquery.tablesorter.widgets.js @@ -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; }