diff options
author | Jose Antonio Marquez Russo | 2012-02-22 14:18:39 -0800 |
---|---|---|
committer | Jose Antonio Marquez Russo | 2012-02-22 14:18:39 -0800 |
commit | e150cea29af96c4d57e3f6cd2ecda0a3c86f366d (patch) | |
tree | f3410214d1049514322127cf8256fee2ab7f420c /js/io/ui/new-file-dialog | |
parent | 5da4627fe899c03e885d10a77a5e33bb15875504 (diff) | |
parent | dbf0ca5637a3bca87c21c65ada47f8a4d794f78c (diff) | |
download | ninja-e150cea29af96c4d57e3f6cd2ecda0a3c86f366d.tar.gz |
Merge pull request #16 from ananyasen/FileIO
FileIO branch pull request
Diffstat (limited to 'js/io/ui/new-file-dialog')
-rwxr-xr-x | js/io/ui/new-file-dialog/new-file-workflow-controller.js | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/js/io/ui/new-file-dialog/new-file-workflow-controller.js b/js/io/ui/new-file-dialog/new-file-workflow-controller.js index c2be687a..901b61c7 100755 --- a/js/io/ui/new-file-dialog/new-file-workflow-controller.js +++ b/js/io/ui/new-file-dialog/new-file-workflow-controller.js | |||
@@ -19,12 +19,6 @@ var NewFileWorkflowController = exports.NewFileWorkflowController = Montage.cre | |||
19 | writable:false, | 19 | writable:false, |
20 | enumerable:true, | 20 | enumerable:true, |
21 | value:function(){ | 21 | value:function(){ |
22 | var that = this; | ||
23 | |||
24 | this.eventManager.addEventListener("saveAs", function(evt){ | ||
25 | var data = evt._event.data || {};//data will contain the current file name, directory location and callback | ||
26 | that.showSaveAsDialog(data); | ||
27 | }, false); | ||
28 | } | 22 | } |
29 | }, | 23 | }, |
30 | 24 | ||
@@ -87,7 +81,6 @@ var NewFileWorkflowController = exports.NewFileWorkflowController = Montage.cre | |||
87 | saveAsDialog.fileName = fileName; | 81 | saveAsDialog.fileName = fileName; |
88 | saveAsDialog.folderUri = folderUri; | 82 | saveAsDialog.folderUri = folderUri; |
89 | saveAsDialog.callback = data.callback; | 83 | saveAsDialog.callback = data.callback; |
90 | saveAsDialog.callbackScope = data.callbackScope; | ||
91 | saveAsDialog.element = saveAsDialogContainer; | 84 | saveAsDialog.element = saveAsDialogContainer; |
92 | 85 | ||
93 | //remove after rendering and add in modal dialog | 86 | //remove after rendering and add in modal dialog |