mirror of
https://github.com/OMGeeky/andors-trail.git
synced 2025-12-31 08:50:01 +01:00
18 lines
521 B
JavaScript
18 lines
521 B
JavaScript
var ATEditor = (function(ATEditor, model, importExport) {
|
|
|
|
function ExportController($scope) {
|
|
$scope.sections = model.sections;
|
|
$scope.content = "";
|
|
$scope.selectedSection = $scope.selectedSection || model.items;
|
|
$scope.exportData = function() {
|
|
$scope.content = importExport.exportData($scope.selectedSection);
|
|
};
|
|
};
|
|
|
|
|
|
ATEditor.controllers = ATEditor.controllers || {};
|
|
ATEditor.controllers.ExportController = ExportController;
|
|
|
|
return ATEditor;
|
|
})(ATEditor, ATEditor.model, ATEditor.importExport);
|