revert previous commit, reload after party invite accept

This commit is contained in:
Matteo Pagliazzi
2013-10-28 16:24:40 +01:00
parent e8173a4962
commit 9e21974108

View File

@@ -173,9 +173,9 @@ habitrpg.controller("GroupsCtrl", ['$scope', '$rootScope', 'Groups', '$http', 'A
$scope.join = function(party){
var group = new Groups.Group({_id: party.id, name: party.name});
// there a better way to access GroupsCtrl.groups.party?
group.$join(function(party){
$scope.group = party;
group.$join(function(){
User.user.invitations.party = undefined;
location.reload();
});
}
$scope.leave = function(group){