Add timeout option to show processing label
This commit is contained in:
1 parent
f3c5f401a3
commit
c3e4788a2b
1 file changed
+5
-2
+5
-2
@@ -3616,11 +3616,14 @@
|
||||
this.el.appendTo('body');
|
||||
});
|
||||
},
|
||||
show: function() {
|
||||
show: function(timeout=null) {
|
||||
if (timeout === null) {
|
||||
timeout = this.timeout;
|
||||
}
|
||||
return window.setTimeout(() => {
|
||||
this.queries += 1;
|
||||
this.el.show();
|
||||
}, this.timeout);
|
||||
}, timeout);
|
||||
},
|
||||
hide: function(timeoutID) {
|
||||
window.clearTimeout(timeoutID);
|
||||
|
||||
Reference in new issue
Block a user