mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 23:27:26 +01:00
Make openInviteModal function more readable
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user