summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/tag/helpers/tag.php2
-rw-r--r--modules/tag/js/tag.js6
2 files changed, 4 insertions, 4 deletions
diff --git a/modules/tag/helpers/tag.php b/modules/tag/helpers/tag.php
index 774e1fa1..fd683bc1 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", array("id" => "gAddTag"));
+ $form = new Forge(url::site("tags"), "", "post");
$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 8f93e9ff..98643c2d 100644
--- a/modules/tag/js/tag.js
+++ b/modules/tag/js/tag.js
@@ -3,14 +3,14 @@ $("document").ready(function() {
});
function ajaxify_tag_form() {
- $("form#gAddTag").ajaxForm({
+ $("#gTag form").ajaxForm({
complete: function(xhr, statusText) {
- $("form#gAddTag").replaceWith(xhr.responseText);
+ $("#gTag form").replaceWith(xhr.responseText);
if (xhr.status == 201) {
$.get($("#gTagCloud").attr("src"), function(data, textStatus) {
$("#gTagCloud").html(data);
});
- $("form#gAddTag").clearForm();
+ $("#gTag form").clearForm();
}
ajaxify_tag_form();
}