show processing icon after 500ms delay

This commit is contained in:
Mottie 2014-04-27 11:09:23 -05:00
parent f4cded6c6c
commit 1fd56558e0

View File

@ -1030,7 +1030,13 @@
$table $table
.unbind('sortBegin' + c.namespace + ' sortEnd' + c.namespace) .unbind('sortBegin' + c.namespace + ' sortEnd' + c.namespace)
.bind('sortBegin' + c.namespace + ' sortEnd' + c.namespace, function(e) { .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);
}
}); });
} }