From a668bf607c88d9b8b9549767f2b17528084c58b0 Mon Sep 17 00:00:00 2001 From: nikita Date: Mon, 12 Sep 2016 17:15:19 +0530 Subject: [PATCH] Refs: #7111 --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js index 57b41b1..f9148b7 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js @@ -3563,7 +3563,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo $('#btnTranparency').addClass('tButtonActive'); //debugger; - $('#txtlayerNumber').val((parseInt($scope.currentLayerNumber)) + 1); + // $('#txtlayerNumber').val((parseInt($scope.currentLayerNumber)) + 1); //Dated:18-07-2016 Issue#4975: Transparency box should not be clickable if it is already selected. $('#btnTranparency').removeClass('tButtonActive'); $('#btnTranparency').addClass('btn-black'); @@ -3731,12 +3731,19 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo } else { + var tranparencyLayer; var currentLayer = parseInt($('#txtlayerNumber').val()); + if (currentLayer == $rootScope.totalLayers) { - var tranparencyLayer = currentLayer + 1; + tranparencyLayer = currentLayer; + } + else { + tranparencyLayer = currentLayer + 1; + } $scope.layerNumber = tranparencyLayer; } - + + $('#txtlayerNumber').val($scope.layerNumber); //dedebugger; //1. get the image source var tranparencyImgSrc; -- libgit2 0.21.4