summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-02-09 00:30:13 +0000
committerBharat Mediratta <bharat@menalto.com>2009-02-09 00:30:13 +0000
commit9f4fdcd8d50a9b4bd4bf2bcdd66a705b8b458df9 (patch)
tree95a1172712633e513208f7bf30a31291775952b2
parentb15e0c75291ee68a8e54c0dcda7985cad6b44ece (diff)
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.
-rw-r--r--modules/tag/js/tag.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/modules/tag/js/tag.js b/modules/tag/js/tag.js
index 3fe12d37..3cbc30bf 100644
--- a/modules/tag/js/tag.js
+++ b/modules/tag/js/tag.js
@@ -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();
}
});
}