From a2d5d8091f68263812624f8ed1092cbf5338e744 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Fri, 6 Nov 2009 07:34:56 -0800 Subject: The ajaxify_tag_form was not being called when the block was created. Moved the code to ajaxify the add form into the block html and deleted tag.js. Fixes Ticket #872 --- modules/tag/helpers/tag_theme.php | 1 - modules/tag/js/tag.js | 13 ------------- modules/tag/views/tag_block.html.php | 17 ++++++++++++++--- 3 files changed, 14 insertions(+), 17 deletions(-) delete mode 100644 modules/tag/js/tag.js (limited to 'modules') diff --git a/modules/tag/helpers/tag_theme.php b/modules/tag/helpers/tag_theme.php index 76c0ea6b..e966821a 100644 --- a/modules/tag/helpers/tag_theme.php +++ b/modules/tag/helpers/tag_theme.php @@ -21,7 +21,6 @@ class tag_theme_Core { static function head($theme) { $theme->css("jquery.autocomplete.css"); $theme->script("jquery.autocomplete.js"); - $theme->script("tag.js"); $theme->css("tag.css"); } diff --git a/modules/tag/js/tag.js b/modules/tag/js/tag.js deleted file mode 100644 index 4760084d..00000000 --- a/modules/tag/js/tag.js +++ /dev/null @@ -1,13 +0,0 @@ -function ajaxify_tag_form() { - $("#g-tag form").ajaxForm({ - dataType: "json", - success: function(data) { - if (data.result == "success") { - $.get($("#g-tag-cloud").attr("title"), function(data, textStatus) { - $("#g-tag-cloud").html(data); - }); - } - $("#g-tag form").resetForm(); - } - }); -} diff --git a/modules/tag/views/tag_block.html.php b/modules/tag/views/tag_block.html.php index ad36b297..00b57360 100644 --- a/modules/tag/views/tag_block.html.php +++ b/modules/tag/views/tag_block.html.php @@ -1,7 +1,7 @@ - -
"> +
">
\ No newline at end of file -- cgit v1.2.3