mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-10-08 13:44:18 +00:00
Core: delay any sort during an update
This commit is contained in:
parent
bb939266a8
commit
972621db6e
@ -396,6 +396,7 @@
|
||||
if ($bk.length && !$bk.hasClass(c.cssInfoBlock)) {
|
||||
// get tbody
|
||||
$tb = ts.processTbody(table, $bk, true);
|
||||
$tb.children().detach(); // remove rows
|
||||
n = cc[k].normalized;
|
||||
totalRows = n.length;
|
||||
for (i = 0; i < totalRows; i++) {
|
||||
@ -621,6 +622,10 @@
|
||||
}
|
||||
|
||||
function initSort(table, cell, event){
|
||||
if (table.isUpdating) {
|
||||
// let any updates complete before initializing a sort
|
||||
return setTimeout(function(){ initSort(table, cell, event); }, 50);
|
||||
}
|
||||
var arry, indx, col, order, s,
|
||||
c = table.config,
|
||||
key = !event[c.sortMultiSortKey],
|
||||
|
Loading…
Reference in New Issue
Block a user