Quests: initial Bosses WIP - invite, accept, reject, etc

This commit is contained in:
Tyler Renelle
2013-12-20 12:42:36 -07:00
parent faeeecdf04
commit ecb354e2cc
13 changed files with 238 additions and 17 deletions

View File

@@ -267,11 +267,11 @@ habitrpg.controller("GroupsCtrl", ['$scope', '$rootScope', 'Groups', '$http', 'A
}
])
.controller("PartyCtrl", ['$scope', 'Groups', 'User', '$state',
function($scope, Groups, User, $state) {
.controller("PartyCtrl", ['$rootScope','$scope', 'Groups', 'User', '$state',
function($rootScope,$scope, Groups, User, $state) {
$scope.type = 'party';
$scope.text = 'Party';
$scope.group = Groups.party();
$scope.group = $rootScope.party = Groups.party();
$scope.newGroup = new Groups.Group({type:'party', leader: User.user._id, members: [User.user._id]});
$scope.create = function(group){
group.$save(function(newGroup){