diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js index 15f1692..59285b7 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js @@ -6259,7 +6259,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo $scope.enableNormalMode = function () { $("#btnTranparency").removeClass("disabled"); - console.log('$scope.isTransparencyActivated= ' + $scope.isTransparencyActivated + ', $scope.currentLayerNumber= ' + $scope.currentLayerNumber) + if ($scope.isTransparencyActivated) { $scope.layerNumber = $scope.currentLayerNumber; } @@ -6924,6 +6924,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo $scope.OnGenderChange = function (event) { + var canvasDiv = document.getElementById('canvasDiv'); $scope.imageVerticalScrollPosition = canvasDiv.scrollTop; $scope.imageHorizontlScrollPosition = canvasDiv.scrollLeft; @@ -6985,6 +6986,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo //3. $scope.layerNumber = 0; + $scope.loadSelectedBodyView(currentBodyViewId); @@ -7137,6 +7139,11 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo else { $scope.CalculateImageCordinates($rootScope.viewOrientationId); + + // $("#btnTranparency").remove("disabled"); + $('#txtlayerNumber').val($scope.layerNumber) + + }