Changed all party.quest.key instances in quest invite modal to user.party.quest.key and changed invite modal check

This commit is contained in:
hairlessbear
2015-05-27 18:49:35 -04:00
parent 966f9d2aca
commit dc8647d6ae
2 changed files with 11 additions and 12 deletions

View File

@@ -148,9 +148,8 @@ habitrpg.controller('NotificationCtrl',
});
// Quest invitation modal
$rootScope.$watch('user.party.quest.RSVPNeeded == true', function(after, before){
$rootScope.$watch('user.party.quest.RSVPNeeded', function(after, before){
if (after != true) return;
$rootScope.party.$get();
$rootScope.openModal('questInvitation');
});