Commit ad813573a1f480665a3120e021e7f81b66348017

Authored by Nikita Kulshreshtha
1 parent f60300ed

move the variable isTransparencyActivated to when TBox is created and introduece…

…d new varibale on clicking Tbox
400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
... ... @@ -3580,7 +3580,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
3580 3580  
3581 3581 $scope.createTransparencyBox = function () {
3582 3582  
3583   - $scope.isTransparencyActivated = true;
  3583 +
  3584 + $scope.isTransparencyBtnClicked = true;
3584 3585  
3585 3586 //do not create TBOX if in extarct mode otherwise create
3586 3587 if ($rootScope.isExtract == false) {
... ... @@ -3747,6 +3748,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
3747 3748 document.getElementById('canvasDiv').appendChild(tempCanvas);
3748 3749 }
3749 3750  
  3751 + $scope.isTransparencyActivated = true;
3750 3752  
3751 3753 var BodyRegionDictionary = $rootScope.BodyRegionCordinatesData;
3752 3754  
... ... @@ -4877,9 +4879,9 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
4877 4879 $rootScope.CloseListManager();
4878 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 4886 var canvasDiv = document.getElementById('canvasDiv');
4885 4887 canvasDiv.removeEventListener("mousedown", mouseDownListener);
... ...