remove website in edit profile page works

This commit is contained in:
Dušan Juretić 2013-09-16 22:58:20 -03:00
parent bb2b17b24e
commit 2c8a5b5ff8

View file

@ -17,5 +17,6 @@ habitrpg.controller("UserCtrl", ['$scope', '$location', 'User',
}
$scope.removeWebsite = function($index){
User.user.profile.websites.splice($index,1);
User.set('profile.websites', User.user.profile.websites);
}
}]);