Commit 688d144e38cdf659c8cfac6c688d6721634433df

Authored by unknown
1 parent 6f5c9c6c

25035 : Atlas Anatomy > Variation in the structure and number of structures of the List Manager

400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js
@@ -429,8 +429,8 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou @@ -429,8 +429,8 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
429 429
430 }) 430 })
431 $rootScope.aaPinDataArray = []; 431 $rootScope.aaPinDataArray = [];
  432 + $rootScope.isShowSelectedSystemPinsClicked = false;
432 $scope.showAllPins = function () { 433 $scope.showAllPins = function () {
433 -  
434 $scope.allPinDataArray = []; 434 $scope.allPinDataArray = [];
435 var promise = ModuleService.getPinDataForImage($rootScope.imageName) 435 var promise = ModuleService.getPinDataForImage($rootScope.imageName)
436 436
@@ -456,11 +456,19 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou @@ -456,11 +456,19 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
456 $scope.allPinDataArray.push(value._PinId); 456 $scope.allPinDataArray.push(value._PinId);
457 $scope.drawStaticPinsOnImage('aaDetailViewCanvas', value._PinId, value._PinX, value._PinY, value._HeadX, value._HeadY) 457 $scope.drawStaticPinsOnImage('aaDetailViewCanvas', value._PinId, value._PinX, value._PinY, value._HeadX, value._HeadY)
458 }) 458 })
  459 +
  460 +
  461 + if ($rootScope.isShowSelectedSystemPinsClicked == false) {
  462 + $rootScope.isShowSelectedSystemPinsClicked = true;
  463 + //load search/vocab data
  464 + $rootScope.loadSearchData();
  465 + }
  466 + else {
  467 + $rootScope.isLoading = false;
  468 + $('#spinner').css('visibility', 'hidden');
  469 + }
459 470
460 -  
461 -  
462 - //load search/vocab data  
463 - $rootScope.loadSearchData(); 471 +
464 } 472 }
465 }, 473 },
466 function (error) { 474 function (error) {
@@ -682,6 +690,7 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou @@ -682,6 +690,7 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
682 } 690 }
683 691
684 $scope.showSelectedSystemPins = function (event) { 692 $scope.showSelectedSystemPins = function (event) {
  693 + $rootScope.isShowSelectedSystemPinsClicked = true;
685 var bodySystemListObj = document.getElementById("bodySystemList").getElementsByTagName("a"); 694 var bodySystemListObj = document.getElementById("bodySystemList").getElementsByTagName("a");
686 var bodySystemListlength = bodySystemListObj.length; 695 var bodySystemListlength = bodySystemListObj.length;
687 for (var i = 0; i < bodySystemListlength; i++) { 696 for (var i = 0; i < bodySystemListlength; i++) {