From 107a6ba2bb4f9d296f2e250484f08f0ef71632c5 Mon Sep 17 00:00:00 2001 From: amrita.vishnoi Date: Tue, 21 Nov 2017 10:10:16 +0530 Subject: [PATCH] code is in between --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+), 0 deletions(-) diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js index 7cc58c0..486632e 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js @@ -273,7 +273,24 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l }; + $scope.DisableUI = function () { + alert('disable ui'); + var daImagePanelConetent = document.getElementsByClassName("jsPanel-content"); + for (var i = 0; i < daImagePanelConetent.length; i++) { + daImagePanelConetent[i].style.pointerEvents = "none"; + } + + } + $scope.EnableUI = function () { + alert('enable ui'); + var daImagePanelConetent = document.getElementsByClassName("jsPanel-content"); + for (var i = 0; i < daImagePanelConetent.length; i++) { + daImagePanelConetent[i].style.pointerEvents = "auto"; + } + + alert('enable ui'); + } $scope.openView = function ($event) { $rootScope.disableAnnotationTB = false; @@ -1728,6 +1745,13 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l } ); } + else if ($scope.ColoredImageSRC.length == totalCanvas) + { + // dispatch event for enabling rest UI + alert('all canvas drawn'); + $scope.EnableUI(); + } + //-NIKI-for solving extarct issue 8286 var imageCanvas = document.getElementById('imageCanvas' + bodyRegionId + '_MR'); @@ -9399,6 +9423,10 @@ function OnIdentityClick() { } function OnZoom() { + alert('on zoom called'); + var scope = angular.element(document.getElementById("daView")).scope(); + scope.DisableUI(); + if ($(".btn-annotation").hasClass("activebtncolor")) //Bug #14928 $(".btn-annotation").removeClass("activebtncolor"); //Dissectible Anatomy > Extract and Annotations displays apart on the page after click on Zoom-in. @@ -9409,6 +9437,8 @@ function OnZoom() { scope.$apply(function () { scope.enableZoom(); }); + + } function onListManagerTermSelection(id, isTermListOptionClicked) { -- libgit2 0.21.4