Commit 963ba6b5fe718a53aa7b693b8ce5b006f2032f14

Authored by Amrita Vishnoi
1 parent cee1f43f

Refs: #4464

Fixed issue:
Case: If no CTRL first time and then the annotation should shown but if after first annotation if user has pressed the CTRL then first annotation should maintain. FIXED.
400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
... ... @@ -1035,6 +1035,10 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
1035 1035 }
1036 1036 imgCanvas.addEventListener('click', function (evt) {
1037 1037  
  1038 + if (evt.ctrlKey)
  1039 + {
  1040 + $scope.multiAnnotationIsON = true;
  1041 + }
1038 1042  
1039 1043 // debugger;
1040 1044 var annotationText;
... ... @@ -1073,7 +1077,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
1073 1077 {
1074 1078 if ($scope.machedBodyRegion.length > 0)
1075 1079 {
1076   - if ($scope.multiAnnotationIsON == false) {
  1080 + if ($scope.multiAnnotationIsON == false)
  1081 + {
1077 1082 for (var i = 0; i < $scope.machedBodyRegion.length; i++) {
1078 1083 var bodyRegionId = $scope.machedBodyRegion[i];
1079 1084  
... ... @@ -1085,7 +1090,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
1085 1090 var grayImageData = $rootScope.grayImageDataList[bodyRegionId - 1];
1086 1091  
1087 1092 grayCanvasContext.putImageData(grayImageData, 0, 0)
1088   - }
  1093 +
  1094 + }
1089 1095 }
1090 1096  
1091 1097 var ActualTermNo = $scope.getActualTermNumber(RGBColor);
... ...