diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-08-09 23:08:35 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-08-09 23:08:35 -0700 |
commit | f7a23e0a9cdd4a85e4bc50964917d6995b7d54ab (patch) | |
tree | f79f3e68dbb04204fb0575c801c633765dcdd671 /modules/gallery/helpers | |
parent | cea1d4f1f3d295284f3ba19f0d73bb2785b6ed29 (diff) |
Fix up context menus a bit.
- Update digibug_event::context_menu() to take the actual item
- Change gallery::context_menu() to not require the page_type as an argument
Diffstat (limited to 'modules/gallery/helpers')
-rw-r--r-- | modules/gallery/helpers/gallery.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/gallery/helpers/gallery.php b/modules/gallery/helpers/gallery.php index 0bf180c1..279f2013 100644 --- a/modules/gallery/helpers/gallery.php +++ b/modules/gallery/helpers/gallery.php @@ -197,7 +197,8 @@ class gallery_Core { return $menu; } - static function context_menu($menu, $theme, $item, $page_type) { + static function context_menu($menu, $theme, $item) { + $page_type = $theme->page_type(); switch ($item->type) { case "movie": $edit_title = t("Edit this movie"); @@ -218,9 +219,9 @@ class gallery_Core { $move_title = t("Move to another album"); $csrf = access::csrf_token(); - + $menu->append($options_menu = Menu::factory("submenu") - ->id("options") + ->id("options_menu") ->label(t("Options")) ->css_class("ui-icon-carat-1-n")); |