From f223a91f7756cd9653b430a1c6f9dd2350210412 Mon Sep 17 00:00:00 2001 From: nikita Date: Mon, 29 Oct 2018 17:50:15 +0530 Subject: [PATCH] message for email --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) 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); } + ) - - } + } } -- libgit2 0.21.4