I'm calling the bootstrap modal using the below code,
$scope.modalInstance = $modal.open({
templateUrl: '/src/lvassets/owl/download/points.modal.php',
size: 'm',
controller: DownloadInstanceCtrl,
windowClass: "hmodal-info",
scope: $scope,
backdrop: 'static',
keyboard: false,
resolve: {
params: function () {
var vars = {
'qty': $scope.qty,
'code': $scope.shortCode,
'offset': $scope.offset,
'status': $scope.status
};
return vars;
}
}
});
As you can see I have set the 'backdrop' property to 'static' and 'keyboard' to 'false' to prevent the modal to be closed with the mouse or the 'esc' key from the keyboard. This modal shows progress bar along with some details about the download process and depending upon the user input it could take few minuted for the download process to close. So I have added a button where the user is given an option to 'Download in background', that will close the modal. I have used below code for that,
$(".inmodal").hide();
$('body').removeClass('modal-open');
$('.modal-backdrop').hide();
Once the process completes in the background I'm reopening the modal screen which contains some follow-up details by this code,
$(".inmodal").show();
$('body').addClass('modal-open');
$('.modal-backdrop').show();
The above code hides the modal and removes the 'tinted' screen and the user so the user can view the screen, sroll through it and read the details BUT the user cannot interact with the screen i.e. the he/she cannot click on the links or buttons.
Is there a way to address this problem? Thanks in advance.