WIP(party-page): Active party page

This commit is contained in:
Sabe Jones
2015-08-06 12:13:50 -05:00
parent c275db6b4b
commit f1704a6a92
6 changed files with 26 additions and 15 deletions

View File

@@ -477,6 +477,7 @@ habitrpg.controller("GroupsCtrl", ['$scope', '$rootScope', 'Shared', 'Groups', '
Chat.seenMessage($scope.group._id);
$scope.create = function(group){
if (!group.name) group.name = env.t('possessiveParty', {name: User.user.profile.name});
group.$save(function(){
Analytics.track({'hitType':'event','eventCategory':'behavior','eventAction':'join group','owner':true,'groupType':'party','privacy':'private'});
Analytics.updateUser({'partyID':group.id,'partySize':1});