diff options
Diffstat (limited to 'modules/tag')
| -rw-r--r-- | modules/tag/helpers/tag.php | 2 | ||||
| -rw-r--r-- | modules/tag/js/tag.js | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/modules/tag/helpers/tag.php b/modules/tag/helpers/tag.php index fd683bc1..595f4b08 100644 --- a/modules/tag/helpers/tag.php +++ b/modules/tag/helpers/tag.php @@ -80,7 +80,7 @@ class tag_Core { } public static function get_add_form($item_id) { - $form = new Forge(url::site("tags"), "", "post"); + $form = new Forge(url::site("tags"), "", "post", array("id" => "gAddTagForm")); $group = $form->group(_("Add Tag")); $group->input("tag_name"); $group->hidden("item_id")->value($item_id); diff --git a/modules/tag/js/tag.js b/modules/tag/js/tag.js index 98643c2d..74e48998 100644 --- a/modules/tag/js/tag.js +++ b/modules/tag/js/tag.js @@ -3,14 +3,14 @@ $("document").ready(function() { }); function ajaxify_tag_form() { - $("#gTag form").ajaxForm({ + $("#gAddTagForm").ajaxForm({ complete: function(xhr, statusText) { - $("#gTag form").replaceWith(xhr.responseText); + $("#gAddTagForm").replaceWith(xhr.responseText); if (xhr.status == 201) { $.get($("#gTagCloud").attr("src"), function(data, textStatus) { $("#gTagCloud").html(data); }); - $("#gTag form").clearForm(); + $("#gAddTagForm").clearForm(); } ajaxify_tag_form(); } |
