From da4a6a23f4d175235605ea86edfadd112feaae5d Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 27 Oct 2016 16:20:15 +0530 Subject: [PATCH] commit change for #8777 : removed code --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js | 25 +++---------------------- 1 file changed, 3 insertions(+), 22 deletions(-) diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js index 17b6715..7617a02 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js @@ -2573,7 +2573,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo if ($scope.isTransparencyActivated) { - debugger; + //crete temp canavs to store the original data which will be used to chnange the transparency if (document.getElementById('tempCanvas') != null) { $('#tempCanvas').remove(); @@ -2598,7 +2598,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo var tCanvas = document.getElementById('transparencyCanvas'); - if (tCanvas != null) { + var tCanvasContext = tCanvas.getContext('2d'); var tCanvasHeight = parseInt((tCanvas.style.height).replace('px', '')); @@ -2639,26 +2639,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo }) - }else - { - //#8777 :DA > Layer change is not apply on the view. - var tranparencyLayer; - - var currentLayer = parseInt($('#txtlayerNumber').val()); - if (currentLayer == $rootScope.totalLayers) { - tranparencyLayer = currentLayer; - } - else if (currentLayer==0) - { - tranparencyLayer = 0; - } - else { - tranparencyLayer = currentLayer + 1; - } - $scope.layerNumber = tranparencyLayer; - $('#txtlayerNumber').val($scope.layerNumber); - $scope.CalculateImageCordinates($rootScope.viewOrientationId); - } + } else { -- libgit2 0.21.4