From d881c91e0c542133187e00d62c9191add7a5c33d Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Thu, 27 Nov 2008 00:26:04 +0000 Subject: Trying to add tags, but it doesn't work yet. For some reason that i can't figure out, the form never validates and I never get into the true branch of the if. I'm taking a break for awhile. --- modules/tag/js/tag.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 modules/tag/js/tag.js (limited to 'modules/tag/js') diff --git a/modules/tag/js/tag.js b/modules/tag/js/tag.js new file mode 100644 index 00000000..726b8ad2 --- /dev/null +++ b/modules/tag/js/tag.js @@ -0,0 +1,16 @@ +$("document").ready(function() { + $("#gAddTag").submit(function(event){ + get_tag_block($("#gAddTag").attr("action")); + return false; + }); +}); + +function get_tag_block(url) { + $.get(url, function(data) { + $('#gTagFormContainer').html(data); + $("#gAddTag").submit(function(event){ + get_tag_block($("#gAddTag").attr("action")); + return false; + }); + }); +} -- cgit v1.2.3