From 3fb2a63185e9ab1f6c8b7926cb1fc0629e17ebe2 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sun, 31 Oct 2021 12:51:50 -0700 Subject: [PATCH] Turn the spinner off after a refresh fails. --- frontends/ycdl_flask/templates/channel.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontends/ycdl_flask/templates/channel.html b/frontends/ycdl_flask/templates/channel.html index c90f670..d1ee01b 100644 --- a/frontends/ycdl_flask/templates/channel.html +++ b/frontends/ycdl_flask/templates/channel.html @@ -611,6 +611,10 @@ function refresh_channel_callback(response) else { alert(JSON.stringify(response)); + for (let button of document.getElementsByClassName("refresh_button")) + { + window[button.dataset.spinnerCloser](); + } } }