Commit 7fd1db7a7d57beb244abff9cbb43fcc6cd7e598d
Merge branch 'ListManagerWorkingWIthUatCode' into Develop
Showing
3 changed files
with
74 additions
and
13 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
... | ... | @@ -2327,8 +2327,11 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
2327 | 2327 | //layer change function |
2328 | 2328 | $scope.LayerChange = function () { |
2329 | 2329 | |
2330 | - //remove annotation | |
2331 | - | |
2330 | + | |
2331 | + //if listanager is visisble then close it | |
2332 | + $rootScope.isListManagerSelected = false; | |
2333 | + | |
2334 | + $rootScope.CloseListManager(); | |
2332 | 2335 | |
2333 | 2336 | |
2334 | 2337 | |
... | ... | @@ -3295,6 +3298,12 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
3295 | 3298 | $scope.createTransparencyBox = function () { |
3296 | 3299 | |
3297 | 3300 | |
3301 | + //if listanager is visisble then close it | |
3302 | + | |
3303 | + $rootScope.isListManagerSelected = false; | |
3304 | + $rootScope.CloseListManager(); | |
3305 | + | |
3306 | + | |
3298 | 3307 | $scope.isTransparencyActivated = true; |
3299 | 3308 | // alert('transparencyClicked' + $scope.isTransparencyActivated) |
3300 | 3309 | $('#btnTranparency').addClass('tButtonActive'); |
... | ... | @@ -4492,6 +4501,11 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
4492 | 4501 | |
4493 | 4502 | $scope.OnIdentityClick = function () { |
4494 | 4503 | |
4504 | + | |
4505 | + //if listanager is visisble then close it | |
4506 | + | |
4507 | + $rootScope.isListManagerSelected = false; | |
4508 | + $rootScope.CloseListManager(); | |
4495 | 4509 | // $('#btnIdentity').addClass('btn-primary'); |
4496 | 4510 | |
4497 | 4511 | if ($scope.isTransparencyActivated == true) { |
... | ... | @@ -4512,7 +4526,12 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
4512 | 4526 | |
4513 | 4527 | $scope.enableZoom = function () { |
4514 | 4528 | |
4515 | - //remove speech bubble | |
4529 | + | |
4530 | + //if listanager is visisble then close it | |
4531 | + | |
4532 | + $rootScope.isListManagerSelected = false; | |
4533 | + $rootScope.CloseListManager(); | |
4534 | + | |
4516 | 4535 | $('#sppeachBubble').css('display', 'none'); |
4517 | 4536 | |
4518 | 4537 | $("#dot").css("display", "none"); |
... | ... | @@ -4527,6 +4546,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
4527 | 4546 | |
4528 | 4547 | $rootScope.isZoomed = true; |
4529 | 4548 | //1. |
4549 | + | |
4530 | 4550 | $scope.flushCanvas(); |
4531 | 4551 | |
4532 | 4552 | if ($scope.zoomInOut == 25) { |
... | ... | @@ -4674,6 +4694,12 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
4674 | 4694 | |
4675 | 4695 | |
4676 | 4696 | |
4697 | + | |
4698 | + //if listanager is visisble then close it | |
4699 | + | |
4700 | + // $rootScope.isListManagerSelected = false; | |
4701 | + $rootScope.CloseListManager(); | |
4702 | + | |
4677 | 4703 | if ($rootScope.isHighLight == true) { |
4678 | 4704 | |
4679 | 4705 | } |
... | ... | @@ -4729,6 +4755,12 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
4729 | 4755 | |
4730 | 4756 | $scope.enableNormalMode = function () { |
4731 | 4757 | |
4758 | + | |
4759 | + //if listanager is visisble then close it | |
4760 | + | |
4761 | + // $rootScope.isListManagerSelected = false; | |
4762 | + $rootScope.CloseListManager(); | |
4763 | + | |
4732 | 4764 | if ($rootScope.isNormalMode == true) { |
4733 | 4765 | |
4734 | 4766 | } |
... | ... | @@ -4780,6 +4812,12 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
4780 | 4812 | |
4781 | 4813 | $scope.enableExtract = function () { |
4782 | 4814 | |
4815 | + | |
4816 | + | |
4817 | + //if listanager is visisble then close it | |
4818 | + | |
4819 | + // $rootScope.isListManagerSelected = false; | |
4820 | + $rootScope.CloseListManager(); | |
4783 | 4821 | //1. |
4784 | 4822 | $rootScope.isLoading = true; |
4785 | 4823 | $('#spinner').css('visibility', 'visible'); |
... | ... | @@ -4839,6 +4877,12 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
4839 | 4877 | |
4840 | 4878 | $scope.enableShowHideStructureBox = function () { |
4841 | 4879 | |
4880 | + | |
4881 | + //if listanager is visisble then close it | |
4882 | + | |
4883 | + $rootScope.isListManagerSelected = false; | |
4884 | + $rootScope.CloseListManager(); | |
4885 | + | |
4842 | 4886 | $(".com").toggle(); |
4843 | 4887 | $('#dot').toggle(); |
4844 | 4888 | $('#sppeachBubble').toggle() |
... | ... | @@ -5284,6 +5328,11 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
5284 | 5328 | |
5285 | 5329 | $scope.OnGenderChange = function (event) { |
5286 | 5330 | |
5331 | + //if listanager is visisble then close it | |
5332 | + | |
5333 | + $rootScope.isListManagerSelected = false; | |
5334 | + $rootScope.CloseListManager(); | |
5335 | + | |
5287 | 5336 | $rootScope.isLoading = true; |
5288 | 5337 | $('#spinner').css('visibility', 'visible'); |
5289 | 5338 | |
... | ... | @@ -5441,6 +5490,12 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
5441 | 5490 | |
5442 | 5491 | $scope.OnViewChange = function (event) { |
5443 | 5492 | |
5493 | + //if listanager is visisble then close it | |
5494 | + | |
5495 | + $rootScope.isListManagerSelected = false; | |
5496 | + $rootScope.CloseListManager(); | |
5497 | + | |
5498 | + | |
5444 | 5499 | $rootScope.isLoading = true; |
5445 | 5500 | $('#spinner').css('visibility', 'visible'); |
5446 | 5501 | |
... | ... | @@ -5603,13 +5658,13 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
5603 | 5658 | |
5604 | 5659 | //if ($rootScope.isSettingEventAlredayDispachted == true) { |
5605 | 5660 | |
5606 | - $scope.loadSelectedBodyView(data.reloadDABodyViewId); | |
5661 | + $scope.loadSelectedBodyView(data.reloadDABodyViewId); | |
5607 | 5662 | |
5608 | - $scope.loadSelectedBodyViewNavigator(data.reloadDABodyViewId); | |
5663 | + $scope.loadSelectedBodyViewNavigator(data.reloadDABodyViewId); | |
5609 | 5664 | |
5610 | - $scope.currentTitleFromJson = localStorage.getItem("currentViewTitle"); | |
5665 | + $scope.currentTitleFromJson = localStorage.getItem("currentViewTitle"); | |
5611 | 5666 | |
5612 | - //$rootScope.isSettingEventAlredayDispachted = false; | |
5667 | + //$rootScope.isSettingEventAlredayDispachted = false; | |
5613 | 5668 | //} |
5614 | 5669 | |
5615 | 5670 | }) |
... | ... | @@ -6286,7 +6341,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
6286 | 6341 | $rootScope.textArea = $("#text_area").val(); |
6287 | 6342 | $("#canvas").removeLayer('TextArea_' + $rootScope.resetText).drawLayers(); |
6288 | 6343 | $("#canvas").removeLayer("TextRect_" + $rootScope.resetTextRect).drawLayers(); |
6289 | - | |
6344 | + | |
6290 | 6345 | $('#canvas').drawText({ |
6291 | 6346 | layer: true, |
6292 | 6347 | draggable: true, |
... | ... | @@ -6539,6 +6594,12 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
6539 | 6594 | |
6540 | 6595 | $scope.HighlightBodyByBodySystem = function (event) { |
6541 | 6596 | |
6597 | + //if listanager is visisble then close it | |
6598 | + | |
6599 | + $rootScope.isListManagerSelected = false; | |
6600 | + $rootScope.CloseListManager(); | |
6601 | + | |
6602 | + | |
6542 | 6603 | //NIKITA |
6543 | 6604 | $scope.isHighlightBodyByBodySystem = true; |
6544 | 6605 | $scope.systemMatchedTermList = new jinqJs() |
... | ... | @@ -6865,7 +6926,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
6865 | 6926 | var systemList = $rootScope.CommonData.DACommonData.BodySystems.Item; |
6866 | 6927 | |
6867 | 6928 | $('#bodySystems').empty(); |
6868 | - | |
6929 | + | |
6869 | 6930 | |
6870 | 6931 | var $all = $('<option ng-click=refreshTermListOnSystemSelection($event) id="0" selected="">All</option>').appendTo('#bodySystems'); |
6871 | 6932 | $compile($all)($scope); |
... | ... | @@ -6892,7 +6953,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
6892 | 6953 | //confirm that this is DA module which is last open |
6893 | 6954 | if (currentOpenModuleId == 1) { |
6894 | 6955 | |
6895 | - | |
6956 | + | |
6896 | 6957 | $('#termList').empty(); |
6897 | 6958 | $scope.loadListManger(); |
6898 | 6959 | ... | ... |
400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
... | ... | @@ -72,7 +72,7 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", |
72 | 72 | if (alreadyOpenThisView != null) { |
73 | 73 | for (var i = 0; i < $rootScope.openViews.length; i++) { |
74 | 74 | k++; |
75 | - if ($rootScope.openViews[i].body - views == title) { | |
75 | + if ($rootScope.openViews[i].body-views == title) { | |
76 | 76 | $rootScope.openViews.splice((k - 1), 1); |
77 | 77 | |
78 | 78 | $rootScope.openViews.push( |
... | ... | @@ -395,7 +395,7 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", |
395 | 395 | |
396 | 396 | $rootScope.CloseListManager = function () { |
397 | 397 | console.log('close') |
398 | - $rootScope.isListManagerSelected = false; | |
398 | + //$rootScope.isListManagerSelected = false; | |
399 | 399 | $('#listManager').css('display', 'none'); |
400 | 400 | $("#listManager").css("visibility", "hidden"); |
401 | 401 | // $rootScope.isAnnotationWindowClose = true; | ... | ... |
400-SOURCECODE/AIAHTML5.Web/index.html
1 | 1 | <!DOCTYPE html> |
2 | 2 | <html lang="en" ng-cloak ng-app="AIA"> |
3 | 3 | <head> |
4 | - <base href="/AIA/" /> | |
4 | + <base href="/AIAHTML5/" /> | |
5 | 5 | <meta charset="utf-8"> |
6 | 6 | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
7 | 7 | <!--<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">--> | ... | ... |