Commit ad813573a1f480665a3120e021e7f81b66348017
1 parent
f60300ed
move the variable isTransparencyActivated to when TBox is created and introduece…
…d new varibale on clicking Tbox
Showing
1 changed file
with
5 additions
and
3 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
@@ -3580,7 +3580,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | @@ -3580,7 +3580,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | ||
3580 | 3580 | ||
3581 | $scope.createTransparencyBox = function () { | 3581 | $scope.createTransparencyBox = function () { |
3582 | 3582 | ||
3583 | - $scope.isTransparencyActivated = true; | 3583 | + |
3584 | + $scope.isTransparencyBtnClicked = true; | ||
3584 | 3585 | ||
3585 | //do not create TBOX if in extarct mode otherwise create | 3586 | //do not create TBOX if in extarct mode otherwise create |
3586 | if ($rootScope.isExtract == false) { | 3587 | if ($rootScope.isExtract == false) { |
@@ -3747,6 +3748,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | @@ -3747,6 +3748,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | ||
3747 | document.getElementById('canvasDiv').appendChild(tempCanvas); | 3748 | document.getElementById('canvasDiv').appendChild(tempCanvas); |
3748 | } | 3749 | } |
3749 | 3750 | ||
3751 | + $scope.isTransparencyActivated = true; | ||
3750 | 3752 | ||
3751 | var BodyRegionDictionary = $rootScope.BodyRegionCordinatesData; | 3753 | var BodyRegionDictionary = $rootScope.BodyRegionCordinatesData; |
3752 | 3754 | ||
@@ -4877,9 +4879,9 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | @@ -4877,9 +4879,9 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | ||
4877 | $rootScope.CloseListManager(); | 4879 | $rootScope.CloseListManager(); |
4878 | // $('#btnIdentity').addClass('btn-primary'); | 4880 | // $('#btnIdentity').addClass('btn-primary'); |
4879 | 4881 | ||
4880 | - if ($scope.isTransparencyActivated == true) { | 4882 | + if ($scope.isTransparencyBtnClicked == true) { |
4881 | 4883 | ||
4882 | - $scope.isTransparencyActivated = false; | 4884 | + $scope.isTransparencyBtnClicked = false; |
4883 | 4885 | ||
4884 | var canvasDiv = document.getElementById('canvasDiv'); | 4886 | var canvasDiv = document.getElementById('canvasDiv'); |
4885 | canvasDiv.removeEventListener("mousedown", mouseDownListener); | 4887 | canvasDiv.removeEventListener("mousedown", mouseDownListener); |