aboutsummaryrefslogtreecommitdiff
path: root/js/io/ui/save-as-dialog.reel/save-as-dialog.js
diff options
context:
space:
mode:
authorJose Antonio Marquez Russo2012-02-22 14:18:39 -0800
committerJose Antonio Marquez Russo2012-02-22 14:18:39 -0800
commite150cea29af96c4d57e3f6cd2ecda0a3c86f366d (patch)
treef3410214d1049514322127cf8256fee2ab7f420c /js/io/ui/save-as-dialog.reel/save-as-dialog.js
parent5da4627fe899c03e885d10a77a5e33bb15875504 (diff)
parentdbf0ca5637a3bca87c21c65ada47f8a4d794f78c (diff)
downloadninja-e150cea29af96c4d57e3f6cd2ecda0a3c86f366d.tar.gz
Merge pull request #16 from ananyasen/FileIO
FileIO branch pull request
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.js4
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");