Don't clear the easybake field until response comes back.

This commit is contained in:
voussoir 2021-01-05 13:23:47 -08:00
parent 06f26cd7b7
commit 6fcc96f5aa

View file

@ -271,8 +271,18 @@ function easybake_form()
add_tag_textbox.focus(); add_tag_textbox.focus();
return; return;
} }
api.tags.easybake(easybake_string, tag_action_callback);
add_tag_textbox.value = ""; function callback(response)
{
if (response.meta.status !== 200)
{
alert(JSON.stringify(response));
return;
}
tag_action_callback(response);
add_tag_textbox.value = "";
}
api.tags.easybake(easybake_string, callback);
} }
function delete_specific_tag_form(event) function delete_specific_tag_form(event)