Add timeout option to show processing label

This commit is contained in:
Cédric Krier committed 2024-08-07 16:05:43 +02:00
1 parent f3c5f401a3
commit c3e4788a2b
1 file changed
+5 -2
+5 -2
View File
@@ -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);