diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js index af37d25..9995c7c 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js @@ -3580,7 +3580,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo $scope.createTransparencyBox = function () { - $scope.isTransparencyActivated = true; + + $scope.isTransparencyBtnClicked = true; //do not create TBOX if in extarct mode otherwise create if ($rootScope.isExtract == false) { @@ -3747,6 +3748,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo document.getElementById('canvasDiv').appendChild(tempCanvas); } + $scope.isTransparencyActivated = true; var BodyRegionDictionary = $rootScope.BodyRegionCordinatesData; @@ -4877,9 +4879,9 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo $rootScope.CloseListManager(); // $('#btnIdentity').addClass('btn-primary'); - if ($scope.isTransparencyActivated == true) { + if ($scope.isTransparencyBtnClicked == true) { - $scope.isTransparencyActivated = false; + $scope.isTransparencyBtnClicked = false; var canvasDiv = document.getElementById('canvasDiv'); canvasDiv.removeEventListener("mousedown", mouseDownListener);