Added behavior from #5239 (make quest completion modal always display before quest invite modal)

This commit is contained in:
hairlessbear
2015-05-29 18:25:47 -04:00
parent 177f835353
commit 4fc0234fd4

View File

@@ -148,7 +148,7 @@ habitrpg.controller('NotificationCtrl',
});
// Quest invitation modal
$rootScope.$watch('user.party.quest.RSVPNeeded', function(after, before){
$rootScope.$watch('user.party.quest.RSVPNeeded && (user.party.quest.completed == "" || user.party.quest.completed == undefined)', function(after, before){
if (after != true) return;
$rootScope.openModal('questInvitation', {controller:'PartyCtrl'});
});