diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/CurrBuildController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/CurrBuildController.js index 59522f7..f7676f8 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/CurrBuildController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/CurrBuildController.js @@ -209,6 +209,9 @@ function ($scope, $rootScope, pages, log, Modules, $http, $compile, $location, $ $rootScope.exportToFile = function () { + for (var i = 0; i < $rootScope.structure.length; i++) { + + } $rootScope.selectedNodeSingle.push( { "slideshow": { @@ -278,7 +281,63 @@ function ($scope, $rootScope, pages, log, Modules, $http, $compile, $location, $ }); }; + $rootScope.saveCurricullam = function (file_Name) { + + $scope.selectedNodeSingleObj.push( + { + "slideshow": { + "presentation": { + "structure": { + "structure": [ + { + "_label": "Untitled Slide", + "_id": "-1507902782", + "_isRoot": "false", + "_isBranch": "false", + "_isLocked": "false" + } + ], + "_label": "Untitled Curriculum", + "_id": "-225638207", + "_isRoot": "true", + "_isBranch": "true", + "_isLocked": "false" + }, + "_anchor": "true", + "_window_position": "6,10", + "_window_size": "828,453" + }, + "content": { + "element": [ + { + "notes": "

", + "windows": { + "window": "{\"windowTitle\":\"Hand (Post/Ant)\",\"selectedCallouts\":[],\"annotationData\":\"\",\"minimised\":false,\"scrollPosition\":{\"vertical\":78,\"horizontal\":120},\"selectedStructureID\":7446,\"maximised\":false,\"size\":{\"width\":800,\"height\":753},\"id\":\"424\",\"showSelectedPins\":true,\"scaleIndex\":0,\"bodySystemId\":11,\"windowListId\":\"0\",\"imageId\":\"424\",\"position\":{\"x\":840,\"y\":10},\"mType\":\"ATLAS_ANATOMY\",\"hideCallOuts\":true,\"containsCapturedContent\":true,\"selectedPins\":[\"32783\"],\"contextMenu\":{\"hideLeftBar\":false,\"hideTitleBar\":false,\"hideTopToolBar\":false,\"lockResize\":false}}" + }, + "_id": "-1507902782" + } + ] + } + } + }); + console.log($scope.selectedNodeSingle); + $scope.exportToFile(); + $http({ method: 'Post', url: 'content/data/json/cb/SlideShow/json/' + $scope.fileName + '.json' }).success(function (data) { + localStorage.setItem("cbJsonDataObject", JSON.stringify(data)); + $rootScope.cbJsonData = JSON.parse(localStorage.getItem("cbJsonDataObject")); + $rootScope.cbDynamicJsonData = data; + //$scope.getCBsummary(); + $rootScope.cbJsonData.slideshow.content.element="Eement data"; + $rootScope.cbDynamicJsonData.slideshow.content.element="slideshow element data"; + $rootScope.note = "save data" + //$scope.openCurriculumDetail(); + }) + .error(function (data, status, headers, config) { + console.log(data); + }); + + } //$rootScope.saveCurricullam = function (file_Name) { // $scope.selectedNodeSingleObj.push(