Add all methods in petServices to userCtrl and memberModalCtrl
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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}});
|
||||
|
||||
Reference in New Issue
Block a user