diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js index 89bf757..382901b 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js @@ -34,6 +34,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo $scope.bagartDetails; $scope.transNumber = 50; + $rootScope.modestyCanvasZindex = 12100; + $rootScope.isModestyCanvasVisible = false; //for transarency scale $scope.TBDrawStartX; $scope.TBDrawStartY; @@ -737,7 +739,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo //set max for LayerNumber input $rootScope.totalLayers = dataLength - 1; - // debugger + $('#txtLayerNumber').attr('max', $rootScope.totalLayers); $('#layerChangeSlider').slider("option", "max", $rootScope.totalLayers); @@ -1564,7 +1566,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo // $scope.createDynamicSpeechBubble(evt, annotationText, evt.pageX + horizontlScrollPosition - $('#canvasDiv').offset().left, evt.pageY + verticalScrollPosition - $('#canvasDiv').offset().top); $scope.MultiLanguageAnnationArray = []; $scope.MultiLanguageAnnationArray.push(annotationText); - + $scope.createDynamicSpeechBubble(evt, evt.pageX + horizontlScrollPosition - $('#canvasDiv').offset().left, evt.pageY + verticalScrollPosition - $('#canvasDiv').offset().top, true); } else { @@ -1590,7 +1592,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo $scope.MultiLanguageAnnationArray = []; $scope.MultiLanguageAnnationArray.push(annotationText); - + $scope.createDynamicSpeechBubble(evt, evt.pageX + horizontlScrollPosition - $('#canvasDiv').offset().left, evt.pageY + verticalScrollPosition - $('#canvasDiv').offset().top, true); } @@ -2801,7 +2803,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo return null; } } - + //layer change function $scope.LayerChange = function () { @@ -2811,7 +2813,6 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo // $rootScope.isListManagerSelected = false; $rootScope.CloseListManager(); - $scope.isLayerChange = true; $rootScope.isLoading = true; $('#spinner').css('visibility', 'visible'); @@ -2953,17 +2954,14 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo $('#sppeachBubble').remove(); $(".com").remove(); $("#bord").remove(); - - - if (($("#canvasPaint").css("display") == "block") && ($("#canvas").css("display") == "block")){ + + if (($("#canvasPaint").css("display") == "block") && ($("#canvas").css("display") == "block")) { if ($rootScope.isAnnotatiomToolBarPopupActive == false) { - - if ($("#transparencyScale").css("display") == "block") { + if ($("#transparencyScale").css("display") == "block") { $rootScope.switchToTransparencycanvas(); } } else { - if ($("#OnIdentify").hasClass("annotationtoolbartab")) { $rootScope.switchToTransparencycanvas(); } @@ -2972,14 +2970,11 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo $rootScope.switchCanvas(); } } - } else { if ($rootScope.isAnnotatiomToolBarPopupActive == true) { - $rootScope.CloseAnnotationTool(); - } } } @@ -2989,15 +2984,9 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo $scope.DisableProgressBar = function () { - // alert('Disabled wait cursor is called'); - if ($rootScope.isHighLight) { - //alert('isHighlight: ' + $scope.isHighLight); - - //$('#btnHighLight').removeClass('btn btn-black'); - //$('#btnHighLight').addClass('btn-primary'); - + $("#btnHighLight").addClass("btn-primary"); $("#btnHighLight").removeClass("btn-black"); @@ -3059,7 +3048,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo $scope.createDynamicSpeechBubble = function (event, x, y, isAnnotationForTBox) { - //debugger; + if (isAnnotationForTBox == true) { //1. In transparency box we shows two annotation at a time, so we need to decide the max length of annotation in btween two annotation because based on that // we decide the size of speech bubble @@ -3297,7 +3286,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); @@ -3522,12 +3511,12 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo $(".com_annotation").css("display", "none"); $("#bord_annotation").css({ "width": "0px", "display": "none" }); $('.dynCross_anno').parent().parent().parent().remove(); - var sppechBubbleDotHTML_annotation = '' + var sppechBubbleDotHTML_annotation = '' + '' - + '