Commit f223a91f7756cd9653b430a1c6f9dd2350210412

Authored by Nikita Kulshreshtha
1 parent 6de4dfa8

message for email

400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js
@@ -1495,29 +1495,31 @@ function ($scope, $rootScope, pages, log, $http, $timeout, DataService, $filter, @@ -1495,29 +1495,31 @@ function ($scope, $rootScope, pages, log, $http, $timeout, DataService, $filter,
1495 1495
1496 LabExerciseService.LabExerciseReport(User, $scope.reportImage, $scope.reportTitle, $scope.reportCopyStatus, $scope.receiverEmails).then( 1496 LabExerciseService.LabExerciseReport(User, $scope.reportImage, $scope.reportTitle, $scope.reportCopyStatus, $scope.receiverEmails).then(
1497 function(result){ 1497 function(result){
1498 - if (result == "true") {  
1499 - document.getElementById('labExEmailSentModalID').style.display = "block";  
1500 - document.getElementById('labExModalbackground').style.display = "block"; 1498 + if (result == "True") {
  1499 + $rootScope.closeLabExEmailModel();
  1500 + document.getElementById('labExEmailSentModalID').style.display = "block";
  1501 + document.getElementById('labExModalbackground').style.display = "block";
1501 1502
1502 - }  
1503 - else { 1503 + }
  1504 + else {
  1505 + $rootScope.closeLabExEmailModel();
1504 var message = LoginConstants.MAIL_NOT_SENT 1506 var message = LoginConstants.MAIL_NOT_SENT
1505 //alert(message); 1507 //alert(message);
1506 $rootScope.errorMessage = message; 1508 $rootScope.errorMessage = message;
1507 $("#messageModal").modal('show'); 1509 $("#messageModal").modal('show');
1508 } 1510 }
1509 - console.log(result);  
1510 -}, 1511 + console.log(result);
  1512 + },
1511 function (error) { 1513 function (error) {
1512 - var message = LoginConstants.MAIL_NOT_SENT  
1513 - //alert(message);  
1514 - $rootScope.errorMessage = message;  
1515 - $("#messageModal").modal('show'); 1514 + var message = LoginConstants.MAIL_NOT_SENT
  1515 + //alert(message);
  1516 + $rootScope.errorMessage = message;
  1517 + $("#messageModal").modal('show');
1516 console.log(error.statusText); 1518 console.log(error.statusText);
1517 } 1519 }
  1520 + )
1518 1521
1519 -  
1520 - } 1522 + }
1521 1523
1522 } 1524 }
1523 1525