From 8f5a3fd0c269745e2d540a85bfe54fcde66a6687 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sat, 8 Jan 2011 18:45:10 -0800 Subject: Update the dialog title to reflect the album we're currently organizing. --- modules/organize/controllers/organize.php | 1 + modules/organize/views/organize_frame.html.php | 3 +++ 2 files changed, 4 insertions(+) (limited to 'modules/organize') diff --git a/modules/organize/controllers/organize.php b/modules/organize/controllers/organize.php index c53e7f66..62417525 100644 --- a/modules/organize/controllers/organize.php +++ b/modules/organize/controllers/organize.php @@ -56,6 +56,7 @@ class Organize_Controller extends Controller { "sort_column" => $album->sort_column, "sort_order" => $album->sort_order, "editable" => access::can("edit", $album), + "title" => $album->title, "children" => array()); foreach ($album->viewable()->children() as $child) { diff --git a/modules/organize/views/organize_frame.html.php b/modules/organize/views/organize_frame.html.php index cdbf3be7..d9bb71e5 100644 --- a/modules/organize/views/organize_frame.html.php +++ b/modules/organize/views/organize_frame.html.php @@ -65,6 +65,9 @@ } else { thumb_data_view.dragZone.lock(); } + if (parent.set_title) { + parent.set_title(album_info.title); + } }, failure: show_generic_error }); -- cgit v1.2.3