From 2ab71140e1e0f0bc64d572e00f28f76c96880b52 Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Thu, 9 Jul 2015 06:56:08 +0300 Subject: [PATCH] album page head title update; --- client/pages/gallery.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/pages/gallery.js b/client/pages/gallery.js index c0e2161a..f98b02c1 100644 --- a/client/pages/gallery.js +++ b/client/pages/gallery.js @@ -51,7 +51,7 @@ module.exports = function (app) { } ); - app.controller("AlbumPageController", function ($scope, $http, $routeParams, team, api, menu) { + app.controller("AlbumPageController", function ($scope, $rootScope, $http, $routeParams, team, api, menu) { menu.activate('/gallery'); var year_uri = $routeParams.year; @@ -89,6 +89,7 @@ module.exports = function (app) { name: album.title } ]; + $rootScope.title = album.title; }); }); };