mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
fixes to updateAll method to properly refresh widgets
This commit is contained in:
parent
6e5351d104
commit
c2bb547f31
@ -118,6 +118,7 @@
|
||||
log(s + " (" + (new Date().getTime() - d.getTime()) + "ms)");
|
||||
}
|
||||
|
||||
ts.log = log;
|
||||
ts.benchmark = benchmark;
|
||||
|
||||
function getElementText(table, node, cellIndex) {
|
||||
@ -705,6 +706,7 @@
|
||||
})
|
||||
.bind("updateAll.tablesorter", function(e, resort, callback){
|
||||
e.stopPropagation();
|
||||
ts.refreshWidgets(table, true, true);
|
||||
ts.restoreHeaders(table);
|
||||
buildHeaders(table);
|
||||
bindEvents(table);
|
||||
@ -929,7 +931,8 @@
|
||||
// restore headers
|
||||
ts.restoreHeaders = function(table){
|
||||
var c = table.config;
|
||||
c.$headers.each(function(i){
|
||||
// don't use c.$headers here in case header cells were swapped
|
||||
c.$table.find(c.selectorHeaders).each(function(i){
|
||||
// only restore header cells if it is wrapped
|
||||
// because this is also used by the updateAll method
|
||||
if ($(this).find('.tablesorter-header-inner').length){
|
||||
|
Loading…
Reference in New Issue
Block a user