From 3e6ba7acc3291f2268cbe9c9bef0a492b557babb Mon Sep 17 00:00:00 2001
From: Chad Kieffer
Date: Sun, 4 Oct 2009 00:27:22 -0600
Subject: Renamed most, if not all css selectors from gName to g-name. Moved a
few shared images from wind to lib. Deleted unused images in the admin_wind.
This will likely break a few ajax features.
---
modules/tag/js/tag.js | 38 +++++++++++++++++++-------------------
1 file changed, 19 insertions(+), 19 deletions(-)
(limited to 'modules/tag/js')
diff --git a/modules/tag/js/tag.js b/modules/tag/js/tag.js
index bc2331c9..e2e6b782 100644
--- a/modules/tag/js/tag.js
+++ b/modules/tag/js/tag.js
@@ -3,28 +3,28 @@ $("document").ready(function() {
});
function ajaxify_tag_form() {
- $("#gTag form").ajaxForm({
+ $("#g-tag form").ajaxForm({
dataType: "json",
success: function(data) {
if (data.result == "success") {
- $.get($("#gTagCloud").attr("title"), function(data, textStatus) {
- $("#gTagCloud").html(data);
+ $.get($("#g-tag-cloud").attr("title"), function(data, textStatus) {
+ $("#g-tag-cloud").html(data);
});
}
- $("#gTag form").resetForm();
+ $("#g-tag form").resetForm();
}
});
}
function closeEditInPlaceForms() {
// closes currently open inplace edit forms
- if ($("#gRenameTagForm").length) {
- $("#gEditErrorMessage").remove();
- var li = $("#gRenameTagForm").parent();
- $("#gRenameTagForm").parent().html($("#gRenameTagForm").parent().data("revert"));
+ if ($("#g-rename-tag-form").length) {
+ $("#g-edit-error-message").remove();
+ var li = $("#g-rename-tag-form").parent();
+ $("#g-rename-tag-form").parent().html($("#g-rename-tag-form").parent().data("revert"));
li.height("");
- $(".gEditable", li).bind("click", editInPlace);
- $(".g-dialogLink", li).gallery_dialog();
+ $(".g-editable", li).bind("click", editInPlace);
+ $(".g-dialog-link", li).gallery_dialog();
}
}
@@ -41,7 +41,7 @@ function editInPlace(element) {
var tag_name = $(this).html();
var tag_width = $(this).width();
$(this).parent().data("revert", $(this).parent().html());
- var form = '
");
+ $("#g-tag-admin").before("" + data.message + "
");
}
}
});
--
cgit v1.2.3