code logic to update preferences

This commit is contained in:
Adrien Lemaire
2013-11-15 00:51:54 +11:00
parent 80be38062e
commit 7c15f09e03
3 changed files with 7 additions and 7 deletions

View File

@@ -6,9 +6,6 @@ habitrpg.controller("UserCtrl", ['$rootScope', '$scope', '$location', 'User', '$
$scope.hideUserAvatar = function() {
$(".userAvatar").hide();
};
$scope.toggleHelm = function(val){
User.log({op:'set', data:{'preferences.showHelm':val}});
}
$scope.$watch('_editing.profile', function(value){
if(value === true) $scope.editingProfile = angular.copy(User.user.profile);