summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad Kieffer <ckieffer@gmail.com>2009-06-09 14:25:49 +0800
committerTim Almdal <tnalmdal@shaw.ca>2009-06-09 21:37:58 +0800
commit2f2fdb1a8f8c55022ed3b5a7157b803a38c291d3 (patch)
tree4181d9b9acae2839dea2bdebe7676094f7d8ea12
parentcb7e375f6cc639b72c7e7ee43b2e2b9bab815697 (diff)
Show status message when album cover is set (#257)
Signed-off-by: Tim Almdal <tnalmdal@shaw.ca>
-rw-r--r--modules/gallery/controllers/quick.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/gallery/controllers/quick.php b/modules/gallery/controllers/quick.php
index 6efcb9de..d6f5213f 100644
--- a/modules/gallery/controllers/quick.php
+++ b/modules/gallery/controllers/quick.php
@@ -87,9 +87,12 @@ class Quick_Controller extends Controller {
access::required("view", $item->parent());
access::required("edit", $item->parent());
+ $msg = t("Made <b>%title</b> this album's cover", array("title" => $item->title));
+
item::make_album_cover($item);
+ message::success($msg);
- print json_encode(array("result" => "success"));
+ print json_encode(array("result" => "success", "reload" => 1));
}
public function delete($id) {