diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js index 3357f9a..5b77de5 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js @@ -1709,12 +1709,23 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo if (evt.ctrlKey) { $rootScope.multiAnnotationIsON = true; + + //$("#btnZoom").addClass('disabled'); + document.getElementById("btnZoom").setAttribute('disabled', 'disabled'); + //$('#btnZoom').click(function (event) { event.preventDefault(); }); + + console.log('CTRL ON') } else { if (($rootScope.previousHighlightList != null || $rootScope.previousHighlightList != undefined) && ($rootScope.previousHighlightList.length > 0)) { $rootScope.previousHighlightList = []; } $rootScope.multiAnnotationIsON = false; + + console.log('multiAnnotationIsON: ' + $rootScope.multiAnnotationIsON); + // document.getElementById("btnZoom").setAttribute('enabled', 'enabled'); + + document.getElementById("btnZoom").disabled = false; } var annotationText; @@ -1868,9 +1879,6 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo } else { - - - $scope.MultiLanguageAnnationArray = []; $scope.MultiLanguageAnnationArray.push(annotationText); @@ -6688,12 +6696,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo } - //clsoe worker process $scope.$on('jsPanelCloseEvent', function (event, data) { - - - console.log('terminate worker process') //terminate previous running workers to create space for new workers $scope.terminateCurrentlyRunningWPs();