Close the spinners after error alerts.

This commit is contained in:
voussoir 2021-09-01 23:32:56 -07:00
parent 46be4f8cff
commit 8c2aea06f3
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -603,14 +603,11 @@ function set_automark_form(event)
function set_automark_callback(response) function set_automark_callback(response)
{ {
if (response.meta.status == 200) if (response.meta.status != 200)
{
set_automark_spinner.hide();
}
else
{ {
alert(JSON.stringify(response)); alert(JSON.stringify(response));
} }
set_automark_spinner.hide();
} }
function set_queuefile_extension_form(event) function set_queuefile_extension_form(event)
@ -621,14 +618,11 @@ function set_queuefile_extension_form(event)
function set_queuefile_extension_callback(response) function set_queuefile_extension_callback(response)
{ {
if (response.meta.status == 200) if (response.meta.status != 200)
{
window[set_queuefile_extension_button.dataset.spinnerCloser]();
}
else
{ {
alert(JSON.stringify(response)); alert(JSON.stringify(response));
} }
window[set_queuefile_extension_button.dataset.spinnerCloser]();
} }
if (CHANNEL_ID) if (CHANNEL_ID)