diff options
Diffstat (limited to 'js/io/ui/new-file-dialog/new-file-options-navigator.reel')
-rw-r--r-- | js/io/ui/new-file-dialog/new-file-options-navigator.reel/new-file-options-navigator.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/js/io/ui/new-file-dialog/new-file-options-navigator.reel/new-file-options-navigator.js b/js/io/ui/new-file-dialog/new-file-options-navigator.reel/new-file-options-navigator.js index 6f8a9ee7..2f148621 100644 --- a/js/io/ui/new-file-dialog/new-file-options-navigator.reel/new-file-options-navigator.js +++ b/js/io/ui/new-file-dialog/new-file-options-navigator.reel/new-file-options-navigator.js | |||
@@ -231,12 +231,13 @@ var NewFileOptionsNavigator = exports.NewFileOptionsNavigator = Montage.create(C | |||
231 | //console.log("$$$ new file selections: \n" + selectionlog); | 231 | //console.log("$$$ new file selections: \n" + selectionlog); |
232 | if(!!this.newFileModel.callback && !!this.newFileModel.callbackScope){//inform document-controller if save successful | 232 | if(!!this.newFileModel.callback && !!this.newFileModel.callbackScope){//inform document-controller if save successful |
233 | this.newFileModel.callback.call(this.newFileModel.callbackScope, {"fileTemplateUri":selectedProjectTypeID, | 233 | this.newFileModel.callback.call(this.newFileModel.callbackScope, {"fileTemplateUri":selectedProjectTypeID, |
234 | "newFilePath":newFilePath});//document-controller api | 234 | "newFilePath":newFilePath, |
235 | "fileExtension":fileExtension});//document-controller api | ||
235 | }else{ | 236 | }else{ |
236 | //send selection event | 237 | //send selection event |
237 | var newFileSelectionEvent = document.createEvent("Events"); | 238 | var newFileSelectionEvent = document.createEvent("Events"); |
238 | newFileSelectionEvent.initEvent("createNewFile", false, false); | 239 | newFileSelectionEvent.initEvent("createNewFile", false, false); |
239 | newFileSelectionEvent.newFileOptions = {"fileTemplateUri":selectedProjectTypeID, "newFilePath":newFilePath}; | 240 | newFileSelectionEvent.newFileOptions = {"fileTemplateUri":selectedProjectTypeID, "newFilePath":newFilePath,"fileExtension":fileExtension}; |
240 | this.eventManager.dispatchEvent(newFileSelectionEvent); | 241 | this.eventManager.dispatchEvent(newFileSelectionEvent); |
241 | } | 242 | } |
242 | //store last selected project type | 243 | //store last selected project type |