diff options
author | Ananya Sen | 2012-02-21 13:04:58 -0800 |
---|---|---|
committer | Ananya Sen | 2012-02-21 13:04:58 -0800 |
commit | adb90eff3323aa780f9a0879572e3cf3b9f0b969 (patch) | |
tree | 64294ab5135c537083f5c78269699420b62e3ce1 /js/io/ui/save-as-dialog.reel/save-as-dialog.js | |
parent | 9f80fc891b7952900dabec04877606c6c8229c61 (diff) | |
download | ninja-adb90eff3323aa780f9a0879572e3cf3b9f0b969.tar.gz |
- file picker - select file on double click
- check cloud availability before IO operations [open file, new file, Save, Save As]. Canceling operation if cloud was unavailable, as per team's agreement.
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/io/ui/save-as-dialog.reel/save-as-dialog.js')
-rw-r--r-- | js/io/ui/save-as-dialog.reel/save-as-dialog.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/io/ui/save-as-dialog.reel/save-as-dialog.js b/js/io/ui/save-as-dialog.reel/save-as-dialog.js index 55a09fa8..0a322b99 100644 --- a/js/io/ui/save-as-dialog.reel/save-as-dialog.js +++ b/js/io/ui/save-as-dialog.reel/save-as-dialog.js | |||
@@ -117,8 +117,8 @@ var SaveAsDialog = exports.SaveAsDialog = Montage.create(Component, { | |||
117 | try{ | 117 | try{ |
118 | //validate file name and folder path | 118 | //validate file name and folder path |
119 | //check if file already exists | 119 | //check if file already exists |
120 | if(!!this.callback && !!this.callbackScope){//inform document-controller if save successful | 120 | if(!!this.callback){//inform document-controller if save successful |
121 | this.callback.call(this.callbackScope, {"filename":filename, "destination": newFileDirectory});//document-controller api | 121 | this.callback({"filename":filename, "destination": newFileDirectory});//document-controller api |
122 | }else{ | 122 | }else{ |
123 | //send save as event | 123 | //send save as event |
124 | var saveAsEvent = document.createEvent("Events"); | 124 | var saveAsEvent = document.createEvent("Events"); |