This commit is contained in:
Akita Noek 2016-06-01 12:12:45 -04:00
parent c6ec38c621
commit 4f20ffb328

View File

@ -11,7 +11,7 @@ var hostEventModal = {
url: '/task/:taskId/host-event/:eventId',
controller: 'HostEventController',
templateUrl: templateUrl('job-detail/host-event/host-event-modal'),
abtract: true,
'abstract': true,
resolve: {
hostEvent: ['JobDetailService','$stateParams', function(JobDetailService, $stateParams) {
return JobDetailService.getRelatedJobEvents($stateParams.id, {
@ -19,7 +19,7 @@ var hostEventModal = {
}).then(function(res){ return res.data.results[0];});
}]
},
onExit: function(){
onExit: function() {
// close the modal
// using an onExit event to handle cases where the user navs away using the url bar / back and not modal "X"
$('#HostEvent').modal('hide');