aboutsummaryrefslogtreecommitdiff
path: root/js/io/ui/new-file-dialog/new-file-options-navigator.reel/new-file-options-navigator.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/io/ui/new-file-dialog/new-file-options-navigator.reel/new-file-options-navigator.js')
-rw-r--r--js/io/ui/new-file-dialog/new-file-options-navigator.reel/new-file-options-navigator.js14
1 files changed, 7 insertions, 7 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 a888d304..a8fec1e4 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
@@ -142,8 +142,8 @@ var NewFileOptionsNavigator = exports.NewFileOptionsNavigator = Montage.create(C
142 }, 142 },
143 143
144 didDraw: { 144 didDraw: {
145 enumerable: false, 145 enumerable: false,
146 value: function() { 146 value: function() {
147 var that = this; 147 var that = this;
148 148
149 this.templateList = null; 149 this.templateList = null;
@@ -309,7 +309,7 @@ var NewFileOptionsNavigator = exports.NewFileOptionsNavigator = Montage.create(C
309 handleOkButtonAction:{ 309 handleOkButtonAction:{
310 value: function(evt){ 310 value: function(evt){
311 var templateData, 311 var templateData,
312 selectedProjectTypeID = this.selectedProjectType.uri, 312 selectedProjectTypeID = this.selectedProjectType.uri,
313 templateID = this.selectedTemplate.uri, 313 templateID = this.selectedTemplate.uri,
314 projectName = this.newFileLocation.newFileName.value, 314 projectName = this.newFileLocation.newFileName.value,
315 projectDirectory = this.newFileLocation.fileInputField.newFileDirectory.value, 315 projectDirectory = this.newFileLocation.fileInputField.newFileDirectory.value,
@@ -324,10 +324,10 @@ var NewFileOptionsNavigator = exports.NewFileOptionsNavigator = Montage.create(C
324 "projectDirectory="+projectDirectory+"\n"+ 324 "projectDirectory="+projectDirectory+"\n"+
325 "projectWidth="+projectWidth+"\n"+ 325 "projectWidth="+projectWidth+"\n"+
326 "projectHeight="+projectHeight; 326 "projectHeight="+projectHeight;
327 //////////////////////////////////////////////////////////////////// 327 ////////////////////////////////////////////////////////////////////
328 //Template data must be passed during file creation (lots of confusion data here, should be cleaned up…) 328 //Template data must be passed during file creation (lots of confusion data here, should be cleaned up…)
329 templateData = {id: templateID, name: this.newFileModel.projectTypeData[selectedProjectTypeID].name, type: this.newFileModel.projectTypeData[selectedProjectTypeID].type}; 329 templateData = {id: templateID, name: this.newFileModel.projectTypeData[selectedProjectTypeID].name, type: this.newFileModel.projectTypeData[selectedProjectTypeID].type};
330 //////////////////////////////////////////////////////////////////// 330 ////////////////////////////////////////////////////////////////////
331 331
332 if(/[^/\\]$/g.test(projectDirectory)){ 332 if(/[^/\\]$/g.test(projectDirectory)){
333 projectDirectory = projectDirectory + "/"; 333 projectDirectory = projectDirectory + "/";