diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2008-11-27 00:26:04 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2008-11-27 00:26:04 +0000 |
commit | d881c91e0c542133187e00d62c9191add7a5c33d (patch) | |
tree | 23cccf4a825ab410e6b2ca48ed3b107d3952d86e /modules/tag/js | |
parent | e3fa1c8acd0e617651e9b4a613413dc51521c63d (diff) |
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.
Diffstat (limited to 'modules/tag/js')
-rw-r--r-- | modules/tag/js/tag.js | 16 |
1 files changed, 16 insertions, 0 deletions
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; + }); + }); +} |