summaryrefslogtreecommitdiff
path: root/modules/tag/js
diff options
context:
space:
mode:
Diffstat (limited to 'modules/tag/js')
-rw-r--r--modules/tag/js/tag.js16
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;
+ });
+ });
+}