From a61a9d70fa5068e0f70f190d0c433cf02e2dc718 Mon Sep 17 00:00:00 2001 From: nikita Date: Fri, 28 Feb 2020 16:03:23 +0530 Subject: [PATCH] fixed --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js index 40548ee..d7b26fc 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js @@ -5627,7 +5627,16 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l $scope.TransparencyBoxEndY = TransparencyBoxEndY; if ($scope.TransparencyBoxStartX == $scope.TransparencyEndX && $scope.TransparencyBoxStartY == $scope.TransparencyBoxEndY) { - // $('#transparencyScale').css('visibility', 'hidden'); + + $("#btnExtract_" + windowviewid).removeClass("disabled"); + $("#btnExtract_" + windowviewid).css("pointer-events", "auto"); + + + $('#btnTranparency_' + windowviewid).removeClass('tButtonActive'); + $('#btnTranparency_' + windowviewid).removeClass(' btn-primary'); + $('#btnTranparency_' + windowviewid).addClass('btn-black'); + + } else { if (previewRectangleWidth == 0 && previewRectangleHeight == 0) { @@ -5637,6 +5646,9 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l $scope.DisableUI(); + $('#btnTranparency_' + windowviewid).removeClass('btn-black'); + $('#btnTranparency_' + windowviewid).addClass('tButtonActive'); + $scope.SetwindowStoreData(windowviewid,'layerNumberBeforeTBDraw',parseInt($('#txtLayerNumberDA_' + windowviewid).val())); // $scope.layerNumberBeforeTBDraw = parseInt($('#txtLayerNumberDA_' + windowviewid).val()); @@ -5687,9 +5699,7 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l document.getElementById("canvasDivDA_" + windowviewid).removeEventListener("touchend", mouseUpListener); - $('#btnTranparency_' + windowviewid).removeClass('btn-black'); - - $('#btnTranparency_' + windowviewid).addClass('tButtonActive'); + //Dated:18-07-2016 Issue#4975: Transparency box should not be clickable if it is already selected. $('#btnTranparency_' + windowviewid).removeClass('tButtonActive'); -- libgit2 0.21.4