Make openInviteModal function more readable

This commit is contained in:
Blade Barringer
2015-08-19 08:53:43 -05:00
parent 0eb61a5bec
commit 635c1ecd5a

View File

@@ -103,10 +103,14 @@ habitrpg.controller("GroupsCtrl", ['$scope', '$rootScope', 'Shared', 'Groups', '
}; };
$scope.openInviteModal = function(group){ $scope.openInviteModal = function(group){
$rootScope.openModal('invite-guild', {controller:'InviteToGroupCtrl', resolve: $rootScope.openModal('invite-guild', {
{injectedGroup: function(){ controller:'InviteToGroupCtrl',
return group; resolve: {
}}}); injectedGroup: function(){
return group;
}
}
});
}; };
$scope.quickReply = function(uid) { $scope.quickReply = function(uid) {