mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
Merge pull request #1795 from Fandekasp/remove_website
remove broken website field from profile
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user