From 37873d3b764bf8261bb2b663a993e3b42694f73f Mon Sep 17 00:00:00 2001 From: mangaldeep patel Date: Fri, 30 Nov 2018 16:13:14 +0530 Subject: [PATCH] AdamImage Module changes --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/AIController.js | 70 ++++++++++++++++++++++++++++++++-------------------------------------- 400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js | 8 ++++++++ 400-SOURCECODE/AIAHTML5.Web/app/views/ai/adam-images-detail.html | 2 +- 400-SOURCECODE/AIAHTML5.Web/app/views/ai/ai-view.html | 8 ++++---- 4 files changed, 45 insertions(+), 43 deletions(-) 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 = $('