Skip to content

Commit

Permalink
In the site menu, say "Delete album", "Delete photo" or "Delete movie"
Browse files Browse the repository at this point in the history
as appropriate for the item type.  Fixes ticket #1175.
  • Loading branch information
bharat committed Jul 5, 2010
1 parent 0d424a6 commit 60126ad
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/gallery/helpers/gallery_event.php
Expand Up @@ -228,14 +228,17 @@ static function site_menu($menu, $theme, $item_css_selector) {
case "album":
$option_text = t("Album options");
$edit_text = t("Edit album");
$delete_text = t("Delete album");
break;
case "movie":
$option_text = t("Movie options");
$edit_text = t("Edit movie");
$delete_text = t("Delete movie");
break;
default:
$option_text = t("Photo options");
$edit_text = t("Edit photo");
$delete_text = t("Delete photo");
}

$menu->append($options_menu = Menu::factory("submenu")
Expand Down Expand Up @@ -309,7 +312,7 @@ static function site_menu($menu, $theme, $item_css_selector) {
->append(
Menu::factory("dialog")
->id("delete")
->label(t("Delete this photo"))
->label($delete_text)
->css_class("ui-icon-trash")
->css_class("g-quick-delete")
->url(url::site("quick/form_delete/$item->id?csrf=$csrf&from_id=$theme_item->id&page_type=$page_type")));
Expand Down

0 comments on commit 60126ad

Please sign in to comment.