Commit f86d3f3d3a3a1d2c98f2259e8aace2564511354e

Authored by unknown
1 parent 03ba5f97

Commit Changes

400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js
... ... @@ -1288,7 +1288,7 @@ function ($scope, $rootScope, pages, log, $http, $timeout, DataService, $filter,
1288 1288 }
1289 1289  
1290 1290 }
1291   -
  1291 + $scope.reportCopyStatus = false;
1292 1292 $scope.SendLabEXMailToUser = function (User) {
1293 1293 console.log(User);
1294 1294 // html2canvas($("#submitResultHtml"), {
... ... @@ -1318,8 +1318,8 @@ function ($scope, $rootScope, pages, log, $http, $timeout, DataService, $filter,
1318 1318 $scope.reportTitle = "Lab Exercise Report for " + $("#submitResultHtml .panel-heading .row div:nth-child(1)").text();
1319 1319 // }
1320 1320 // });
1321   -
1322   - LabExerciseService.LabExerciseReport(User, $scope.reportImage, $scope.reportTitle).then(
  1321 +
  1322 + LabExerciseService.LabExerciseReport(User, $scope.reportImage, $scope.reportTitle, $scope.reportCopyStatus).then(
1323 1323  
1324 1324 function (result) {
1325 1325 console.log(result);
... ... @@ -1328,8 +1328,8 @@ function ($scope, $rootScope, pages, log, $http, $timeout, DataService, $filter,
1328 1328 console.log(error.statusText);
1329 1329 }
1330 1330 )
1331   -
1332   -
  1331 + // for closing email popup
  1332 + $rootScope.closeLabExEmailModel();
1333 1333 }
1334 1334 $rootScope.closeLabExEmailModel = function () {
1335 1335 document.getElementById("LabExerciseForm").reset();
... ... @@ -1338,6 +1338,7 @@ function ($scope, $rootScope, pages, log, $http, $timeout, DataService, $filter,
1338 1338 document.body.style.overflow = "scroll";
1339 1339 document.getElementById('labExModalbackground').style.display = "none";
1340 1340 document.getElementById('labExModalID').style.display = "none";
  1341 + $scope.reportCopyStatus = false;
1341 1342 }
1342 1343 $rootScope.sendMail = function () {
1343 1344 window.scrollTo(0, 0);
... ...