mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-06-01 09:19:09 -04:00
Just reset the tag form after submission; no need to replace it with one from the backend because it's going to be the same form anyway.
This commit is contained in:
@@ -6,16 +6,12 @@ function ajaxify_tag_form() {
|
||||
$("#gTag form").ajaxForm({
|
||||
dataType: "json",
|
||||
success: function(data) {
|
||||
if (data.form) {
|
||||
$("#gTag form").replaceWith(data.form);
|
||||
ajaxify_tag_form();
|
||||
}
|
||||
if (data.result == "success") {
|
||||
$.get($("#gTagCloud").attr("src"), function(data, textStatus) {
|
||||
$("#gTagCloud").html(data);
|
||||
});
|
||||
}
|
||||
$("#gTag form").clearForm();
|
||||
$("#gTag form").resetForm();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user