From d7b0bd5b7203d0e0dca69cf7cfe8046d595b6985 Mon Sep 17 00:00:00 2001 From: Verabird Date: Wed, 4 Feb 2015 20:15:18 -0500 Subject: [PATCH] Add access to .User in MemberModalCtrl --- public/js/controllers/groupsCtrl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/controllers/groupsCtrl.js b/public/js/controllers/groupsCtrl.js index e43742bbde..c911b1e2f2 100644 --- a/public/js/controllers/groupsCtrl.js +++ b/public/js/controllers/groupsCtrl.js @@ -111,7 +111,7 @@ habitrpg.controller("GroupsCtrl", ['$scope', '$rootScope', 'Shared', 'Groups', ' .controller("MemberModalCtrl", ['$scope', '$rootScope', 'Members', 'Shared', '$http', 'Notification', 'Groups', function($scope, $rootScope, Members, Shared, $http, Notification, Groups) { $scope.timestamp = function(timestamp){ - return moment(timestamp).format(User.user.preferences.dateFormat.toUpperCase()); + return moment(timestamp).format($rootScope.User.user.preferences.dateFormat.toUpperCase()); } // We watch Members.selectedMember because it's asynchronously set, so would be a hassle to handle updates here $scope.$watch( function() { return Members.selectedMember; }, function (member) {