Change userLevelStyle to a root scope so it can be used in modals.

This commit is contained in:
Brian Murray
2016-02-25 15:59:04 -08:00
parent 45a938c12d
commit c107e42978

View File

@@ -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 : '';