From 559f9a4b9d770a37048db73e82f84bc1f0ec09f1 Mon Sep 17 00:00:00 2001 From: Chad Kieffer Date: Mon, 31 Aug 2009 22:51:36 -0600 Subject: Add icons to context menu for albums. I'm open to other options, if folks think there's something better in the jQuery UI themeroller set. --- modules/gallery/helpers/gallery.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules') diff --git a/modules/gallery/helpers/gallery.php b/modules/gallery/helpers/gallery.php index 035ed1da..352a69da 100644 --- a/modules/gallery/helpers/gallery.php +++ b/modules/gallery/helpers/gallery.php @@ -288,17 +288,17 @@ class gallery_Core { ->append(Menu::factory("dialog") ->id("add_item") ->label(t("Add a photo")) - ->css_class("add_item") + ->css_class("ui-icon-plus") ->url(url::site("simple_uploader/app/$item->id"))) ->append(Menu::factory("dialog") ->id("add_album") ->label(t("Add an album")) - ->css_class("add_album") + ->css_class("ui-icon-note") ->url(url::site("form/add/albums/$item->id?type=album"))) ->append(Menu::factory("dialog") ->id("edit_permissions") ->label(t("Edit permissions")) - ->css_class("permissions") + ->css_class("ui-icon-key") ->url(url::site("permissions/browse/$item->id"))); } } -- cgit v1.2.3 From 19e49bea0646902dd85aebf0b7fe4c7f213a2ecf Mon Sep 17 00:00:00 2001 From: Chad Kieffer Date: Mon, 31 Aug 2009 23:07:17 -0600 Subject: Don't include Make this the album's cover in context menu's for albums. #705 --- modules/gallery/helpers/gallery.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'modules') diff --git a/modules/gallery/helpers/gallery.php b/modules/gallery/helpers/gallery.php index 352a69da..adfc7fd2 100644 --- a/modules/gallery/helpers/gallery.php +++ b/modules/gallery/helpers/gallery.php @@ -268,13 +268,16 @@ class gallery_Core { } else { $disabledState = " "; } + if ($item->is_photo()) { + $options_menu + ->append(Menu::factory("ajax_link") + ->id("make_album_cover") + ->label($cover_title) + ->css_class("ui-icon-star") + ->ajax_handler("function(data) { window.location.reload() }") + ->url(url::site("quick/make_album_cover/$item->id?csrf=$csrf"))); + } $options_menu - ->append(Menu::factory("ajax_link") - ->id("make_album_cover") - ->label($cover_title) - ->css_class("ui-icon-star") - ->ajax_handler("function(data) { window.location.reload() }") - ->url(url::site("quick/make_album_cover/$item->id?csrf=$csrf"))) ->append(Menu::factory("dialog") ->id("delete") ->label($delete_title) -- cgit v1.2.3 From 39ca803af7a4439fdda3164d79d9435bdaa2b948 Mon Sep 17 00:00:00 2001 From: Chad Kieffer Date: Mon, 31 Aug 2009 23:51:27 -0600 Subject: Set CSS cursor to hand for jQuery UI ui-state-hover elements. Fixes all but progress bar cursor. #669 --- modules/gallery/views/admin_maintenance_task.html.php | 2 +- themes/admin_default/css/admin_screen.css | 7 ------- themes/admin_default/css/screen.css | 9 ++++++++- themes/default/css/screen.css | 8 ++++++-- 4 files changed, 15 insertions(+), 11 deletions(-) (limited to 'modules') diff --git a/modules/gallery/views/admin_maintenance_task.html.php b/modules/gallery/views/admin_maintenance_task.html.php index 0f33d508..bfc6ef44 100644 --- a/modules/gallery/views/admin_maintenance_task.html.php +++ b/modules/gallery/views/admin_maintenance_task.html.php @@ -57,7 +57,7 @@
-
+
diff --git a/themes/admin_default/css/admin_screen.css b/themes/admin_default/css/admin_screen.css index fd1ed02e..a8c16ae5 100644 --- a/themes/admin_default/css/admin_screen.css +++ b/themes/admin_default/css/admin_screen.css @@ -391,13 +391,6 @@ li.gDefaultGroup h4, li.gDefaultGroup .gUser { .rtl #gRenameTagForm a, #gRenameTagForm span { float: right; } -#gProgress button { - float: right; - margin-top: 1em; -} -.rtl #gProgress button { - float: left; -} #gTaskLogDialog h1 { font-size: 1.1em; diff --git a/themes/admin_default/css/screen.css b/themes/admin_default/css/screen.css index 21b2b31c..eb8f9224 100644 --- a/themes/admin_default/css/screen.css +++ b/themes/admin_default/css/screen.css @@ -71,7 +71,10 @@ a, #gDialog a, .gButtonLink, .gButtonLink:hover, -.gButtonLink:active { +.gButtonLink:active, +a.ui-state-hover, +input.ui-state-hover, +button.ui-state-hover { color: #5382BF !important; text-decoration: none; -moz-outline-style: none; @@ -1055,6 +1058,10 @@ table .gSuccess { text-align: right; } +.rtl .txtright { + text-align: left; +} + .rtl #gHeader #gQuickSearchForm, .rtl #gForgotPasswordLink, .rtl #gHeader #gLoginMenu, diff --git a/themes/default/css/screen.css b/themes/default/css/screen.css index f6ce26d2..96be8996 100644 --- a/themes/default/css/screen.css +++ b/themes/default/css/screen.css @@ -71,8 +71,12 @@ a, #gDialog a, .gButtonLink, .gButtonLink:hover, -.gButtonLink:active { - color: #5382BF !important; +.gButtonLink:active, +a.ui-state-hover, +input.ui-state-hover, +button.ui-state-hover { + color: #5382bf !important; + cursor: pointer !important; text-decoration: none; -moz-outline-style: none; } -- cgit v1.2.3 From dfb2e3dd0260a2cb073c5e0e808b47f1a5ca6c42 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Mon, 31 Aug 2009 23:27:46 -0700 Subject: Add an icon to the context menu option. --- modules/organize/helpers/organize_event.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'modules') diff --git a/modules/organize/helpers/organize_event.php b/modules/organize/helpers/organize_event.php index 79077db3..d6043116 100644 --- a/modules/organize/helpers/organize_event.php +++ b/modules/organize/helpers/organize_event.php @@ -24,10 +24,10 @@ class organize_event_Core { if ($item && $item->is_album() && access::can("edit", $item)) { $menu->get("options_menu") ->append(Menu::factory("dialog") - ->id("organize") - ->label(t("Organize Album")) - ->css_id("gOrganizeLink") - ->url(url::site("organize/dialog/{$item->id}"))); + ->id("organize") + ->label(t("Organize Album")) + ->css_id("gOrganizeLink") + ->url(url::site("organize/dialog/{$item->id}"))); } } @@ -38,6 +38,7 @@ class organize_event_Core { ->id("organize") ->label(t("Organize album")) ->css_id("gOrganizeLink") + ->css_class("ui-icon-folder-open") ->url(url::site("organize/dialog/{$item->id}"))); } } -- cgit v1.2.3