From 1dd4e4a4277f77c1055911ca7d64130aaf026810 Mon Sep 17 00:00:00 2001 From: Chad Kieffer Date: Tue, 20 Oct 2009 20:56:14 -0600 Subject: Update tag error messages to use g-action-status and g-message-block. Style g-error for short forms. --- modules/tag/css/tag.css | 7 +------ modules/tag/js/tag.js | 4 ++-- 2 files changed, 3 insertions(+), 8 deletions(-) (limited to 'modules') diff --git a/modules/tag/css/tag.css b/modules/tag/css/tag.css index ec16251d..6e7bb4a3 100644 --- a/modules/tag/css/tag.css +++ b/modules/tag/css/tag.css @@ -92,9 +92,4 @@ #g-rename-tag-form ul { margin-bottom: 0; -} - -#g-rename-tag-form input[type="text"].g-error { - border: 2px solid red; - background: none; -} +} \ No newline at end of file diff --git a/modules/tag/js/tag.js b/modules/tag/js/tag.js index 02985d55..722a8b0e 100644 --- a/modules/tag/js/tag.js +++ b/modules/tag/js/tag.js @@ -19,7 +19,7 @@ function ajaxify_tag_form() { function closeEditInPlaceForms() { // closes currently open inplace edit forms if ($("#g-rename-tag-form").length) { - $("#g-edit-error-message").remove(); + $("#g-action-status").remove(); var li = $("#g-rename-tag-form").parent(); $("#g-rename-tag-form").parent().html($("#g-rename-tag-form").parent().data("revert")); li.height(""); @@ -74,7 +74,7 @@ function editInPlace(element) { $("#g-rename-tag-form #name") .addClass("g-error") .focus(); - $("#g-tag-admin").before("

" + data.message + "

"); + $("#g-tag-admin").before("

" + data.message + "

"); } } }); -- cgit v1.2.3