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