diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js
index 2a312f1..5a80bc6 100644
--- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js
+++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js
@@ -1495,29 +1495,31 @@ function ($scope, $rootScope, pages, log, $http, $timeout, DataService, $filter,
LabExerciseService.LabExerciseReport(User, $scope.reportImage, $scope.reportTitle, $scope.reportCopyStatus, $scope.receiverEmails).then(
function(result){
- if (result == "true") {
- document.getElementById('labExEmailSentModalID').style.display = "block";
- document.getElementById('labExModalbackground').style.display = "block";
+ if (result == "True") {
+ $rootScope.closeLabExEmailModel();
+ document.getElementById('labExEmailSentModalID').style.display = "block";
+ document.getElementById('labExModalbackground').style.display = "block";
- }
- else {
+ }
+ else {
+ $rootScope.closeLabExEmailModel();
var message = LoginConstants.MAIL_NOT_SENT
//alert(message);
$rootScope.errorMessage = message;
$("#messageModal").modal('show');
}
- console.log(result);
-},
+ console.log(result);
+ },
function (error) {
- var message = LoginConstants.MAIL_NOT_SENT
- //alert(message);
- $rootScope.errorMessage = message;
- $("#messageModal").modal('show');
+ var message = LoginConstants.MAIL_NOT_SENT
+ //alert(message);
+ $rootScope.errorMessage = message;
+ $("#messageModal").modal('show');
console.log(error.statusText);
}
+ )
-
- }
+ }
}