From c3e4788a2b3a9b20020e53bb35a2ec558601c3d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 7 Aug 2024 16:05:43 +0200 Subject: [PATCH] Add timeout option to show processing label --- sao/src/common.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sao/src/common.js b/sao/src/common.js index 9226080e1b..b268211d06 100644 --- a/sao/src/common.js +++ b/sao/src/common.js @@ -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);