diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js index a249e98..8d393d0 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js @@ -35,7 +35,7 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l $scope.transNumber = 100; $rootScope.modestyCanvasZindex = 12100; - $rootScope.isModestyCanvasVisible = false; + $rootScope.isTBoxModestyVisible = false; //for transarency scale $scope.TBDrawStartX; $scope.TBDrawStartY; @@ -3252,7 +3252,8 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l if (parseInt(termNumber) != parseInt(figLeafTermNo)) { $scope.TermNumber = termNumber; for (var j = 0; j <= $rootScope.lexiconLanguageArray.length - 1; j++) { - if ($rootScope.TermNumberData != null || $rootScope.TermNumberData != undefined) { + if ($rootScope.TermNumberData != null || $rootScope.TermNumberData != undefined) + { $scope.matchedTermNoData = new jinqJs() .from($rootScope.TermNumberData.TermData.Term) .where('_TermNumber == ' + termNumber) @@ -3279,8 +3280,14 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l } } else { - $rootScope.loadSearchData(); - $scope.GetAnnotationText(termNumber); + var currentBodyViewId = $rootScope.voId; + var termJsonPath = '~/../content/data/json/da/body-views/' + currentBodyViewId + '/da_dat_tm_sg_' + currentBodyViewId + '.json'; + DataService.getAnotherJson(termJsonPath) + .then( + function (result) { + $rootScope.TermNumberData = result; + $scope.GetAnnotationText(termNumber); + }) } } } @@ -3650,7 +3657,7 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l // we decide the size of speech bubble //2. - if (event.ctrlKey) { + if (event.ctrlKey) { console.log('ctrl pressed'); $scope.multiAnnotationIsON = true; //2.1 create unique speech bubbles @@ -3769,12 +3776,14 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l }); } } + if (document.getElementById("btnStrutureBox").name == "showAnnotationStructure") { $scope.showAnnotation() } else { $scope.hideAnnotation() } + if ($rootScope.isTBCompleted == true) { $('#sppeachBubble').remove(); $('#dot').remove(); @@ -4044,7 +4053,9 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l } } $scope.createSpeechBubbleBasedOnTransparencyWithoutCtrl = function (x, y) { - + $("#bord_annotation").remove(); + $("#sppeachBubble_annotation").remove(); + $("#dot_annotation").remove(); var sppechBubbleDotHTML_annotation = '' + '