From fc582df257eded44da9cc39925dadd305dd668dd Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Tue, 8 Mar 2022 16:42:56 -0800 Subject: [PATCH] Move delayed_showing_timeout assignment where needed. --- frontends/etiquette_flask/static/js/spinner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontends/etiquette_flask/static/js/spinner.js b/frontends/etiquette_flask/static/js/spinner.js index ff3bad0..cdebc01 100644 --- a/frontends/etiquette_flask/static/js/spinner.js +++ b/frontends/etiquette_flask/static/js/spinner.js @@ -18,7 +18,6 @@ function Spinner(element) this.show = function(delay) { clearTimeout(this.delayed_showing_timeout); - this.delayed_showing_timeout = null; if (delay) { @@ -26,6 +25,7 @@ function Spinner(element) } else { + this.delayed_showing_timeout = null; this.element.classList.remove("hidden"); } }