From d58e51ae2aafbf48ae84d462d69a9f709bcaaf76 Mon Sep 17 00:00:00 2001 From: nikita Date: Thu, 6 Apr 2017 18:13:23 +0530 Subject: [PATCH] using ng-repeat to bind CI images. --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/CIController.js | 38 ++++++++++++++++++++++++-------------- 1 file changed, 24 insertions(+), 14 deletions(-) diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/CIController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/CIController.js index 9ea57b8..17282b0 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/CIController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/CIController.js @@ -158,7 +158,8 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout }; $scope.loadAllCI = function () { - + $('#ciSpinner').css('visibility', 'visible'); + $('#ciSpinner').css('zIndex', '20000'); var promise = DataService.getJson('~/../content/data/json/ci/ci_dat_contentlist.json') promise.then( function (result) { @@ -170,32 +171,41 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout .select(); // console.log($scope.selectedCIListViewData); - $('#grid-view').empty(); - angular.forEach($scope.selectedCIListViewData, function (value, key) { - $scope.imagePath = "~/../content/images/ci/thumbnails/" + value._ThumbnailImage; + - var $el = $('
' + + $('#grid-view').empty(); + var $e1 = $('
').appendTo('#grid-view'); + $compile($e1)($scope); + //angular.forEach($scope.selectedCIListViewData, function (value, key) { + // $scope.imagePath = "~/../content/images/ci/thumbnails/" + value._ThumbnailImage; + // var $el = $('
' + // + '
' + // + '' + // + '

' + value._Title + '

').appendTo('#grid-view'); - $compile($el)($scope); - $(".sidebar").mCustomScrollbar({ - autoHideScrollbar: true, - //theme:"rounded" - }); + // $compile($el)($scope); - }); + // $(".sidebar").mCustomScrollbar({ + // autoHideScrollbar: true, + // //theme:"rounded" + // }); + //}); + + $timeout(function () { $('#ciSpinner').css('visibility', 'hidden'); }, 200); }, function (error) { // handle errors here console.log(' $scope.IllustrationData = ' + error.statusText); } ); - + } $scope.IsVisible = function () { -- libgit2 0.21.4