Commit da4a6a23f4d175235605ea86edfadd112feaae5d

Authored by unknown
1 parent 6680dca6

commit change for #8777 : removed code

400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
@@ -2573,7 +2573,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo @@ -2573,7 +2573,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
2573 2573
2574 2574
2575 if ($scope.isTransparencyActivated) { 2575 if ($scope.isTransparencyActivated) {
2576 - debugger; 2576 +
2577 //crete temp canavs to store the original data which will be used to chnange the transparency 2577 //crete temp canavs to store the original data which will be used to chnange the transparency
2578 if (document.getElementById('tempCanvas') != null) { 2578 if (document.getElementById('tempCanvas') != null) {
2579 $('#tempCanvas').remove(); 2579 $('#tempCanvas').remove();
@@ -2598,7 +2598,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo @@ -2598,7 +2598,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
2598 2598
2599 2599
2600 var tCanvas = document.getElementById('transparencyCanvas'); 2600 var tCanvas = document.getElementById('transparencyCanvas');
2601 - if (tCanvas != null) { 2601 +
2602 var tCanvasContext = tCanvas.getContext('2d'); 2602 var tCanvasContext = tCanvas.getContext('2d');
2603 2603
2604 var tCanvasHeight = parseInt((tCanvas.style.height).replace('px', '')); 2604 var tCanvasHeight = parseInt((tCanvas.style.height).replace('px', ''));
@@ -2639,26 +2639,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo @@ -2639,26 +2639,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
2639 2639
2640 2640
2641 }) 2641 })
2642 - }else  
2643 - {  
2644 - //#8777 :DA > Layer change is not apply on the view.  
2645 - var tranparencyLayer;  
2646 -  
2647 - var currentLayer = parseInt($('#txtlayerNumber').val());  
2648 - if (currentLayer == $rootScope.totalLayers) {  
2649 - tranparencyLayer = currentLayer;  
2650 - }  
2651 - else if (currentLayer==0)  
2652 - {  
2653 - tranparencyLayer = 0;  
2654 - }  
2655 - else {  
2656 - tranparencyLayer = currentLayer + 1;  
2657 - }  
2658 - $scope.layerNumber = tranparencyLayer;  
2659 - $('#txtlayerNumber').val($scope.layerNumber);  
2660 - $scope.CalculateImageCordinates($rootScope.viewOrientationId);  
2661 - } 2642 +
2662 } 2643 }
2663 2644
2664 else { 2645 else {