From c107e42978f502b48ee479f7517188ff7f1a864c Mon Sep 17 00:00:00 2001 From: Brian Murray Date: Thu, 25 Feb 2016 15:59:04 -0800 Subject: [PATCH] Change userLevelStyle to a root scope so it can be used in modals. --- website/public/js/controllers/rootCtrl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/public/js/controllers/rootCtrl.js b/website/public/js/controllers/rootCtrl.js index 744583004d..eacc0d2cce 100644 --- a/website/public/js/controllers/rootCtrl.js +++ b/website/public/js/controllers/rootCtrl.js @@ -49,7 +49,7 @@ habitrpg.controller("RootCtrl", ['$scope', '$rootScope', '$location', 'User', '$ } // styling helpers - $scope.userLevelStyle = function(user,style){ + $rootScope.userLevelStyle = function(user,style){ style = style || ''; var npc = (user && user.backer && user.backer.npc) ? user.backer.npc : ''; var level = (user && user.contributor && user.contributor.level) ? user.contributor.level : '';