Merge pull request #1795 from Fandekasp/remove_website

remove broken website field from profile
This commit is contained in:
Tyler Renelle
2013-11-13 23:09:27 -08:00
12 changed files with 13 additions and 70 deletions

View File

@@ -16,15 +16,6 @@ habitrpg.controller("GroupsCtrl", ['$scope', '$rootScope', 'Groups', '$http', 'A
group._editing = false;
}
$scope.addWebsite = function(group){
group.websites.push(group._newWebsite);
group._newWebsite = '';
}
$scope.removeWebsite = function(group, $index){
group.websites.splice($index,1);
}
// ------ Modals ------
$scope.clickMember = function(uid, forceShow) {

View File

@@ -26,15 +26,6 @@ habitrpg.controller("UserCtrl", ['$rootScope', '$scope', '$location', 'User', '$
$scope._editing.profile = false;
}
$scope.addWebsite = function(){
if (!$scope.editingProfile.websites) $scope.editingProfile.websites = [];
$scope.editingProfile.websites.push($scope._newWebsite);
$scope._newWebsite = '';
}
$scope.removeWebsite = function($index){
$scope.editingProfile.websites.splice($index,1);
}
$scope.unlock = User.unlock;
}