Close the spinners after error alerts.
This commit is contained in:
parent
46be4f8cff
commit
8c2aea06f3
1 changed files with 4 additions and 10 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue