Commit 647f796c1847efb7abe5b52256aa573fe6fc7b0b

Authored by Amrita Vishnoi
2 parents 513e72b8 a1080444

Merge branch 'Bug#15864' into Develop

400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
... ... @@ -6261,8 +6261,16 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
6261 6261 $scope.enableNormalMode = function () {
6262 6262 $("#btnTranparency").removeClass("disabled");
6263 6263  
  6264 + if ($scope.isTransparencyActivated) {
  6265 + $scope.layerNumber = $scope.currentLayerNumber;
  6266 + }
  6267 + else {
  6268 + $scope.layerNumber = $('#txtlayerNumber').val();
  6269 + }
6264 6270 // $("#btnTranparency").remove("disabled");
6265 6271  
  6272 + $('#txtlayerNumber').val($scope.layerNumber)
  6273 +
6266 6274 $rootScope.isNormalMode = false;
6267 6275 console.log('enableNormalMode is called');
6268 6276  
... ... @@ -6283,7 +6291,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
6283 6291  
6284 6292 }
6285 6293 else {
6286   -
  6294 +
6287 6295 //1.
6288 6296 $scope.flushCanvas();
6289 6297  
... ... @@ -6308,7 +6316,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
6308 6316  
6309 6317 //7.
6310 6318  
6311   - $scope.layerNumber = $('#txtlayerNumber').val();
  6319 + // $scope.layerNumber = $('#txtlayerNumber').val();
6312 6320 $scope.CalculateImageCordinates($rootScope.viewOrientationId);
6313 6321 // alert($rootScope.viewOrientationId + "gadash")
6314 6322  
... ... @@ -6917,6 +6925,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
6917 6925  
6918 6926 $scope.OnGenderChange = function (event) {
6919 6927  
  6928 +
6920 6929 var canvasDiv = document.getElementById('canvasDiv');
6921 6930 $scope.imageVerticalScrollPosition = canvasDiv.scrollTop;
6922 6931 $scope.imageHorizontlScrollPosition = canvasDiv.scrollLeft;
... ... @@ -6978,6 +6987,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
6978 6987 //3.
6979 6988  
6980 6989 $scope.layerNumber = 0;
  6990 +
6981 6991 $scope.loadSelectedBodyView(currentBodyViewId);
6982 6992  
6983 6993  
... ... @@ -7130,6 +7140,11 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
7130 7140 else {
7131 7141  
7132 7142 $scope.CalculateImageCordinates($rootScope.viewOrientationId);
  7143 +
  7144 + // $("#btnTranparency").remove("disabled");
  7145 + $('#txtlayerNumber').val($scope.layerNumber)
  7146 +
  7147 +
7133 7148  
7134 7149 }
7135 7150  
... ...