From 9f4fdcd8d50a9b4bd4bf2bcdd66a705b8b458df9 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Mon, 9 Feb 2009 00:30:13 +0000 Subject: 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. --- modules/tag/js/tag.js | 6 +----- 1 file changed, 1 insertion(+), 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(); } }); } -- cgit v1.2.3