diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/AIController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/AIController.js index 52fdb43..963d71b 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/AIController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/AIController.js @@ -70,7 +70,7 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout $scope.reRunSearchOnLoad = function () { - var curBodyRegion = $rootScope.getLocalStorageValue("AICurBodyId"); + var curBodyRegion = $rootScope.getLocalStorageValue("AIImageId"); if (typeof (curBodyRegion) !== "undefined" && curBodyRegion !== null && curBodyRegion !== '') { $scope.query.selectedbodyregion = curBodyRegion; } @@ -109,11 +109,13 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout }; $scope.loadAllAI = function () { + $rootScope.isLoading = true; $('#aiSpinner').css('visibility', 'visible'); $('#aiSpinner').css('zIndex', '20000'); var promise = DataService.getJson('~/../content/data/json/ai/ai_dat_contentlist.json') promise.then( function (result) { + $scope.IllustrationData = result; $scope.selectedAIListViewData = new jinqJs() @@ -126,21 +128,22 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout $('#grid-view').empty(); - var $e1 = $('