Add all methods in petServices to userCtrl and memberModalCtrl

This commit is contained in:
MathWhiz
2016-07-22 17:03:52 -04:00
parent cefa3c3056
commit 20dd2d7a35
2 changed files with 6 additions and 6 deletions
@@ -19,10 +19,10 @@ habitrpg
$scope.profile = member;
}
});
$scope.formatAnimal = Costume.formatAnimal;
$scope.formatBackground = Costume.formatBackground;
for (var method in Costume) {
$scope[method] = Costume[method];
}
$scope.sendPrivateMessage = function(uuid, message){
if (!message) return;
+3 -3
View File
@@ -16,9 +16,9 @@ habitrpg.controller("UserCtrl", ['$rootScope', '$scope', '$location', 'User', '$
if(value === true) $scope.editingProfile = angular.copy(User.user.profile);
});
$scope.formatAnimal = Costume.formatAnimal;
$scope.formatBackground = Costume.formatBackground;
for (var method in Costume) {
$scope[method] = Costume[method];
}
$scope.allocate = function(stat){
User.allocate({query:{stat:stat}});