port group websites

This commit is contained in:
Matteo Pagliazzi
2013-10-28 21:58:38 +01:00
parent f5777dc0d0
commit 5744146ff6
4 changed files with 18 additions and 6 deletions

View File

@@ -15,6 +15,15 @@ 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);
}
// ------ Loading ------
$scope.groups = Groups.groups;