From ba62fb4b0e9fe2d64803c165a21756e0919c0238 Mon Sep 17 00:00:00 2001 From: Chad Kieffer Date: Thu, 22 Oct 2009 22:06:36 -0600 Subject: Standardize message markup, make the update block status message translatable. --- modules/gallery/controllers/admin_sidebar.php | 3 ++- modules/gallery/views/admin_sidebar.html.php | 8 +++++--- modules/tag/js/tag.js | 5 ++++- 3 files changed, 11 insertions(+), 5 deletions(-) (limited to 'modules') diff --git a/modules/gallery/controllers/admin_sidebar.php b/modules/gallery/controllers/admin_sidebar.php index f029d259..c83b5a37 100644 --- a/modules/gallery/controllers/admin_sidebar.php +++ b/modules/gallery/controllers/admin_sidebar.php @@ -47,7 +47,8 @@ class Admin_Sidebar_Controller extends Admin_Controller { $v = new View("admin_sidebar_blocks.html"); $v->blocks = $active; $result["active"] = $v->render(); - + $message = t("Updated sidebar blocks"); + $result["message"] = (string) $message; print json_encode($result); } diff --git a/modules/gallery/views/admin_sidebar.html.php b/modules/gallery/views/admin_sidebar.html.php index f784b1a5..7c97270c 100644 --- a/modules/gallery/views/admin_sidebar.html.php +++ b/modules/gallery/views/admin_sidebar.html.php @@ -21,10 +21,12 @@ if (data.result == "success") { $("ul#g-available-blocks").html(data.available); $("ul#g-active-blocks").html(data.active); - var message = "Updated blocks"; $("#g-action-status").remove(); - $("#g-block-admin").before(""); - $("#g-action-status").fadeTo(1000,1).fadeTo(2000,0); + var message = ""; + $("#g-block-admin").before(message); + $("#g-action-status li").gallery_show_message(); } }); } diff --git a/modules/tag/js/tag.js b/modules/tag/js/tag.js index ed977480..8cb4e571 100644 --- a/modules/tag/js/tag.js +++ b/modules/tag/js/tag.js @@ -72,7 +72,10 @@ function editInPlace(element) { $("#g-rename-tag-form #name") .addClass("g-error") .focus(); - $("#g-tag-admin").before("

" + data.message + "

"); + var message = ""; + $("#g-tag-admin").before(message); } } }); -- cgit v1.2.3 From 80c6bf789b4a9925e86abdb3275cc570f9c2d6ad Mon Sep 17 00:00:00 2001 From: Chad Kieffer Date: Thu, 22 Oct 2009 22:28:55 -0600 Subject: Make g-inline more specific, replace universal selector with an li since this class will most often be used with order and unordered lists. Apply g-inline to the the login menu and footer credits. --- lib/gallery.common.css | 2 +- modules/gallery/views/login.html.php | 2 +- themes/night_wind/css/screen.css | 13 ++++--------- themes/night_wind/views/page.html.php | 4 ++-- themes/wind/css/screen.css | 15 ++++++--------- themes/wind/views/page.html.php | 4 ++-- 6 files changed, 16 insertions(+), 24 deletions(-) (limited to 'modules') diff --git a/lib/gallery.common.css b/lib/gallery.common.css index 77653d00..51d50dfc 100644 --- a/lib/gallery.common.css +++ b/lib/gallery.common.css @@ -482,7 +482,7 @@ div#g-action-status { /* Inline layout ~~~~~~~~~~ */ -.g-inline * { +.g-inline li { float: left; margin-right: .4em; } diff --git a/modules/gallery/views/login.html.php b/modules/gallery/views/login.html.php index 9be218c0..3b327e31 100644 --- a/modules/gallery/views/login.html.php +++ b/modules/gallery/views/login.html.php @@ -1,5 +1,5 @@ -