diff options
author | Chad Kieffer <ckieffer@gmail.com> | 2009-08-31 23:07:17 -0600 |
---|---|---|
committer | Chad Kieffer <ckieffer@gmail.com> | 2009-08-31 23:07:17 -0600 |
commit | 19e49bea0646902dd85aebf0b7fe4c7f213a2ecf (patch) | |
tree | a0fa0917060ca74b275bf4a865e582077758acbf /modules | |
parent | 7b2c03c2b9d61ce945199505d8c2f273a84725b9 (diff) |
Don't include Make this the album's cover in context menu's for albums. #705
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gallery/helpers/gallery.php | 15 |
1 files changed, 9 insertions, 6 deletions
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) |