Commit 31c8f0decfeee03293aa7211bf37708355ecf81e
1 parent
1b2012a9
commit changes for loadSlideShowXmldata function
Showing
2 changed files
with
13 additions
and
2 deletions
400-SOURCECODE/AIAHTML5.Web/Web.config
... | ... | @@ -38,6 +38,7 @@ |
38 | 38 | <mimeMap fileExtension=".woff" mimeType="application/font-woff" /> |
39 | 39 | <mimeMap fileExtension=".mp3" mimeType="audio/mpeg" /> |
40 | 40 | <mimeMap fileExtension=".woff2" mimeType="application/font-woff2" /> |
41 | + <mimeMap fileExtension=".sldshw" mimeType="application/vnd.openxmlformats-officedocument.presentationml.slideshow" /> | |
41 | 42 | <!--<mimeMap fileExtension=".json" mimeType="application/json" />--> |
42 | 43 | <mimeMap fileExtension=".json" mimeType="application/javascript" /> |
43 | 44 | </staticContent> | ... | ... |
400-SOURCECODE/AIAHTML5.Web/app/controllers/CurrBuildController.js
... | ... | @@ -4,6 +4,7 @@ function ($scope, $rootScope, pages, log,Modules,$http,$compile) { |
4 | 4 | $rootScope.currentActiveModuleTitle = pages[6].name; |
5 | 5 | $scope.showme = false; |
6 | 6 | $scope.listCurriculumBuilder = null; |
7 | + $scope.dataPopup = null; | |
7 | 8 | $scope.countLeftlist; |
8 | 9 | $scope.countRightlist; |
9 | 10 | $scope.IsVisible = function () { |
... | ... | @@ -39,6 +40,7 @@ function ($scope, $rootScope, pages, log,Modules,$http,$compile) { |
39 | 40 | .select(); |
40 | 41 | for (var i = 0; i < $scope.countLeftlist; i++) { |
41 | 42 | console.log($scope.listCurriculumBuilder.slideshows.slideshow[i]._label); |
43 | + alert($scope.listCurriculumBuilder.slideshows.slideshow[i]._label); | |
42 | 44 | var $el = $('<li class="list-group-item" data-toggle="modal" data-target="#myModal-1" ng-click="loadSlideShowXmldata()"><a href="#"><i class="fa fa-check"></i>' + $scope.listCurriculumBuilder.slideshows.slideshow[i]._label + '</a></li>').appendTo('#leftBodyViewList'); |
43 | 45 | $compile($el)($scope); |
44 | 46 | } |
... | ... | @@ -52,9 +54,17 @@ function ($scope, $rootScope, pages, log,Modules,$http,$compile) { |
52 | 54 | |
53 | 55 | } |
54 | 56 | |
55 | - $scope.loadSlideShowXmldata = function ($event) { | |
57 | + $scope.loadSlideShowXmldata = function (e) { | |
56 | 58 | |
57 | - alert("asd"); | |
59 | + alert(e); | |
60 | + $http({ method: 'GET', url: 'content/data/json/cb/SlideShow/AIA_Curriculum_Builder_Guide.sldshw' }).success(function (data) { | |
61 | + | |
62 | + $scope.dataPopup = data; | |
63 | + alert($scope.dataPopup); | |
64 | + }) | |
65 | + .error(function (data, status, headers, config) { | |
66 | + console.log(data); | |
67 | + }); | |
58 | 68 | } |
59 | 69 | }] |
60 | 70 | ... | ... |