From b4b72b284b61673dfceb3c8a206181d66cd26c35 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Thu, 27 Nov 2008 01:48:01 +0000 Subject: We are now submitting the ajax tag add form to the server correctly and rehooking the ajaxForm --- modules/tag/js/tag.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'modules/tag/js') diff --git a/modules/tag/js/tag.js b/modules/tag/js/tag.js index 726b8ad2..7b2d32c4 100644 --- a/modules/tag/js/tag.js +++ b/modules/tag/js/tag.js @@ -1,12 +1,15 @@ $("document").ready(function() { - $("#gAddTag").submit(function(event){ - get_tag_block($("#gAddTag").attr("action")); - return false; - }); + var options = { + target: "#gTagFormContainer", + success: function(responseText, statusText) { + $("#gAddTag").ajaxForm(options); + } + }; + $("#gAddTag").ajaxForm(options); }); function get_tag_block(url) { - $.get(url, function(data) { + $.post(url, function(data) { $('#gTagFormContainer').html(data); $("#gAddTag").submit(function(event){ get_tag_block($("#gAddTag").attr("action")); -- cgit v1.2.3