aboutsummaryrefslogtreecommitdiff
path: root/js/io/ui
diff options
context:
space:
mode:
authorAnanya Sen2012-02-03 17:22:48 -0800
committerAnanya Sen2012-02-03 17:22:48 -0800
commit1daf146c849a0a8dbd2b61b14218c9a39bdee3a7 (patch)
treeaf5568f4adac1371ee8b533c34198fb72545e778 /js/io/ui
parent7618cabe1945acc6392c48f3b57820f67f7973b0 (diff)
downloadninja-1daf146c849a0a8dbd2b61b14218c9a39bdee3a7.tar.gz
added editor tab save while switching code view tabs,
integrated new file dialog with io mediator to open the new file in a new tab Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/io/ui')
-rw-r--r--js/io/ui/new-file-dialog/new-file-options-navigator.reel/new-file-options-navigator.js5
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