aboutsummaryrefslogtreecommitdiff
path: root/js/mediators
diff options
context:
space:
mode:
Diffstat (limited to 'js/mediators')
-rw-r--r--js/mediators/io-mediator.js13
1 files changed, 10 insertions, 3 deletions
diff --git a/js/mediators/io-mediator.js b/js/mediators/io-mediator.js
index 95e775a0..599b7d84 100644
--- a/js/mediators/io-mediator.js
+++ b/js/mediators/io-mediator.js
@@ -155,9 +155,8 @@ exports.IoMediator = Montage.create(Component, {
155 } 155 }
156 // 156 //
157 save = this.fio.saveFile({uri: file.document.uri, contents: contents}); 157 save = this.fio.saveFile({uri: file.document.uri, contents: contents});
158 if(save.status === 204){ 158 //
159 callback(); 159 if (callback) callback(save);
160 }
161 } 160 }
162 }, 161 },
163 //////////////////////////////////////////////////////////////////// 162 ////////////////////////////////////////////////////////////////////
@@ -170,6 +169,14 @@ exports.IoMediator = Montage.create(Component, {
170 }, 169 },
171 //////////////////////////////////////////////////////////////////// 170 ////////////////////////////////////////////////////////////////////
172 // 171 //
172 fileDelete: {
173 enumerable: false,
174 value: function (file, callback) {
175 //
176 }
177 },
178 ////////////////////////////////////////////////////////////////////
179 //
173 parseHtmlToNinjaTemplate: { 180 parseHtmlToNinjaTemplate: {
174 enumerable: false, 181 enumerable: false,
175 value: function (html) { 182 value: function (html) {