From 17372b89bed4a1bf7bccbc859d28c042c870a787 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Fri, 6 Dec 2013 19:30:55 -0500 Subject: [PATCH] Fix title and description for the new page --- static/js/controllers.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/static/js/controllers.js b/static/js/controllers.js index 0654450a5..b3f8a5b90 100644 --- a/static/js/controllers.js +++ b/static/js/controllers.js @@ -1383,7 +1383,7 @@ function NewOrgCtrl($scope, $routeParams, $timeout, $location, UserService, Plan } -function OrgMemberLogsCtrl($scope, $routeParams, $timeout, Restangular) { +function OrgMemberLogsCtrl($scope, $routeParams, $rootScope, $timeout, Restangular) { var orgname = $routeParams.orgname; var membername = $routeParams.membername; @@ -1395,6 +1395,9 @@ function OrgMemberLogsCtrl($scope, $routeParams, $timeout, Restangular) { var checkReady = function() { $scope.loading = !$scope.organization || !$scope.memberInfo; if (!$scope.loading) { + $rootScope.title = 'Logs for ' + $scope.memberInfo.username + ' (' + $scope.orgname + ')'; + $rootScope.description = 'Shows all the actions of ' + $scope.memberInfo.username + + ' under organization ' + $scope.orgname; $timeout(function() { $scope.ready = true; });