Send back 204 from questLeave route

This commit is contained in:
Blade Barringer
2015-08-24 12:38:43 -05:00
parent af20986fbc
commit 66d16fefc3
4 changed files with 9 additions and 10 deletions

View File

@@ -117,10 +117,8 @@ habitrpg.controller("PartyCtrl", ['$rootScope','$scope','Groups','Chat','User','
$scope.questLeave = function(party){
if (!confirm(window.env.t('sureLeave'))) return;
Groups.questLeave(party)
.then(function() {
$rootScope.hardRedirect('/#/options/groups/party');
});
delete $scope.group.quest.members[User.user._id];
Groups.questLeave(party);
}
$scope.questAccept = function(party){