Prevented modal close and showed correct due class in modal

This commit is contained in:
Keith Holliday
2017-06-16 12:28:42 -06:00
parent 7a8857010e
commit 136dcd27a9
3 changed files with 8 additions and 3 deletions

View File

@@ -42,10 +42,12 @@ habitrpg.controller('NotificationCtrl',
showCompleted: false,
type: 'daily',
};
modalScope.processingYesterdailies = true;
$scope.yesterDailiesModalOpen = true;
$rootScope.openModal('yesterDailies', {
scope: modalScope,
backdrop: 'static',
controller: ['$scope', 'Tasks', 'User', '$rootScope', function ($scope, Tasks, User, $rootScope) {
$rootScope.$on('task:scored', function (event, data) {
var task = data.task;