diff options
author | Ananya Sen | 2012-02-13 21:37:47 -0800 |
---|---|---|
committer | Ananya Sen | 2012-02-13 21:37:47 -0800 |
commit | 935ac5ea82c12366aa6b82f3409b5845f0fce3c6 (patch) | |
tree | fa270dfc73a9e072155b6d9b8ca4c91345e5bc09 /js/mediators | |
parent | 50a40c4e21b9a4d53d6d1fb739d838c0319ab09b (diff) | |
download | ninja-935ac5ea82c12366aa6b82f3409b5845f0fce3c6.tar.gz |
integrating save functionality
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/mediators')
-rw-r--r-- | js/mediators/io-mediator.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/js/mediators/io-mediator.js b/js/mediators/io-mediator.js index 47069cfb..95e775a0 100644 --- a/js/mediators/io-mediator.js +++ b/js/mediators/io-mediator.js | |||
@@ -154,7 +154,10 @@ exports.IoMediator = Montage.create(Component, { | |||
154 | break; | 154 | break; |
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){ | ||
159 | callback(); | ||
160 | } | ||
158 | } | 161 | } |
159 | }, | 162 | }, |
160 | //////////////////////////////////////////////////////////////////// | 163 | //////////////////////////////////////////////////////////////////// |