Don't clear the easybake field until response comes back.
This commit is contained in:
parent
06f26cd7b7
commit
6fcc96f5aa
1 changed files with 12 additions and 2 deletions
|
@ -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);
|
|
||||||
|
function callback(response)
|
||||||
|
{
|
||||||
|
if (response.meta.status !== 200)
|
||||||
|
{
|
||||||
|
alert(JSON.stringify(response));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
tag_action_callback(response);
|
||||||
add_tag_textbox.value = "";
|
add_tag_textbox.value = "";
|
||||||
|
}
|
||||||
|
api.tags.easybake(easybake_string, callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
function delete_specific_tag_form(event)
|
function delete_specific_tag_form(event)
|
||||||
|
|
Loading…
Reference in a new issue