aboutsummaryrefslogtreecommitdiff
path: root/js/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'js/controllers')
-rwxr-xr-xjs/controllers/document-controller.js16
1 files changed, 11 insertions, 5 deletions
diff --git a/js/controllers/document-controller.js b/js/controllers/document-controller.js
index 7f4feff9..227b5462 100755
--- a/js/controllers/document-controller.js
+++ b/js/controllers/document-controller.js
@@ -97,13 +97,19 @@ DocumentController = exports.DocumentController = Montage.create(Component, {
97 this.application.ninja.newFileController.showNewFileDialog(newFileSettings); 97 this.application.ninja.newFileController.showNewFileDialog(newFileSettings);
98 } 98 }
99 }, 99 },
100 100
101
102 ////////////////////////////////////////////////////////////////////
103 //TODO: Improve logic and make functions
101 handleExecuteSave: { 104 handleExecuteSave: {
102 value: function(event) { 105 value: function(event) {
103 this.activeDocument.save(); 106 //
104 } 107 this.application.ninja.ioMediator.fileSave(this.activeDocument.save());
108 }
105 }, 109 },
106 110 ////////////////////////////////////////////////////////////////////
111
112
107 createNewFile:{ 113 createNewFile:{
108 value:function(newFileObj){ 114 value:function(newFileObj){
109 //console.log(newFileObj);//contains the template uri and the new file uri 115 //console.log(newFileObj);//contains the template uri and the new file uri