diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2008-11-27 01:48:01 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2008-11-27 01:48:01 +0000 |
commit | b4b72b284b61673dfceb3c8a206181d66cd26c35 (patch) | |
tree | 4b6e31b229e6e69041c043fa1de0341cff583f30 /modules/tag/js | |
parent | d881c91e0c542133187e00d62c9191add7a5c33d (diff) |
We are now submitting the ajax tag add form to the server correctly and rehooking the ajaxForm
Diffstat (limited to 'modules/tag/js')
-rw-r--r-- | modules/tag/js/tag.js | 13 |
1 files changed, 8 insertions, 5 deletions
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")); |