mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
show processing icon after 500ms delay
This commit is contained in:
parent
f4cded6c6c
commit
1fd56558e0
@ -1030,7 +1030,13 @@
|
||||
$table
|
||||
.unbind('sortBegin' + c.namespace + ' sortEnd' + c.namespace)
|
||||
.bind('sortBegin' + c.namespace + ' sortEnd' + c.namespace, function(e) {
|
||||
ts.isProcessing(table, e.type === 'sortBegin');
|
||||
clearTimeout(c.processTimer);
|
||||
ts.isProcessing(table);
|
||||
if (e.type === 'sortBegin') {
|
||||
c.processTimer = setTimeout(function(){
|
||||
ts.isProcessing(table, true);
|
||||
}, 500);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user