summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorChad Kieffer <chad@2tbsp.com>2008-11-29 21:30:30 +0000
committerChad Kieffer <chad@2tbsp.com>2008-11-29 21:30:30 +0000
commit6c2869f8227944e56b6bb73da0d72b4c52f87da9 (patch)
treef622471ed0193cdc7bc0f87b3b89b329af7853a7 /modules
parent7ae004f76fafa3f0d31b39c45505e66d9be9b8cf (diff)
Changed CSS organization, removed form section. Moved generic form CSS up to top of sheet and specific form styles to be adjacent to related content. This should ensure inheritance works generic down to specific. Removed #gAddTags in favor of #gTags form.
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();
}