diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js index a9de6f4..28f2228 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js @@ -77,7 +77,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo //extract $rootScope.isExtract = false; - + $rootScope.UIWrapperZIndex = 12000; $rootScope.whiteImageDataList = []; $rootScope.whiteImageMRDataList = []; @@ -2880,6 +2880,34 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo } $('#layerChangeSlider').slider("option", "value", parseInt($rootScope.totalLayers) - parseInt($scope.layerNumber)); + + if (($("#canvasPaint").css("display") == "block") && ($("#canvas").css("display") == "block")){ + if ($rootScope.isAnnotatiomToolBarPopupOpenOnLayerChange == false) { + + if ($("#transparencyScale").css("display") == "block") { + $rootScope.switchToTransparencycanvas(); + } + } + else { + + if ($("#OnIdentify").hasClass("annotationtoolbartab")) { + $rootScope.switchToTransparencycanvas(); + } + else { + $('.btnCursor').addClass('activebtncolor'); + $rootScope.switchCanvas(); + } + } + + } + else + { + if ($rootScope.isAnnotatiomToolBarPopupOpenOnLayerChange == true) { + + $rootScope.CloseAnnotationTool(); + + } + } } $rootScope.PreviouslayerNumbr = 0; @@ -3195,7 +3223,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo var Exists_annotation = $("#canvasDiv").find("div[id=" + pointClicked_annotation + "]").length; // alert(Exists_annotation); // alert(pointClicked_annotation); - var sppechBubbleHTML_annotation = "
"; + var sppechBubbleHTML_annotation = "
"; if ($scope.longest_annotationT1.length > $scope.longest_annotationT2.length) { if (Exists_annotation == 0) { $("#canvasDiv").append(sppechBubbleHTML_annotation); @@ -3421,7 +3449,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo $("#bord_annotation").css({ "width": "0px", "display": "none" }); $('.dynCross_anno').parent().parent().parent().remove(); var sppechBubbleDotHTML_annotation = '' - + '