aboutsummaryrefslogtreecommitdiff
path: root/js/io/workflow/newFileDialog/new-file-location.reel/new-file-location.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/io/workflow/newFileDialog/new-file-location.reel/new-file-location.js')
-rwxr-xr-x[-rw-r--r--]js/io/workflow/newFileDialog/new-file-location.reel/new-file-location.js30
1 files changed, 29 insertions, 1 deletions
diff --git a/js/io/workflow/newFileDialog/new-file-location.reel/new-file-location.js b/js/io/workflow/newFileDialog/new-file-location.reel/new-file-location.js
index 4c90d1a1..805b44a4 100644..100755
--- a/js/io/workflow/newFileDialog/new-file-location.reel/new-file-location.js
+++ b/js/io/workflow/newFileDialog/new-file-location.reel/new-file-location.js
@@ -10,6 +10,16 @@ var newFileWorkflowControllerModule = require("js/io/workflow/newFileDialog/new-
10 10
11var NewFileLocation = exports.NewFileLocation = Montage.create(Component, { 11var NewFileLocation = exports.NewFileLocation = Montage.create(Component, {
12 12
13 templateHeight:{
14 enumerable: true,
15 value:"25 px"
16 },
17
18 templateWidth:{
19 enumerable: true,
20 value:"25 px"
21 },
22
13 willDraw: { 23 willDraw: {
14 enumerable: false, 24 enumerable: false,
15 value: function() {} 25 value: function() {}
@@ -22,7 +32,25 @@ var NewFileLocation = exports.NewFileLocation = Montage.create(Component, {
22 32
23 didDraw: { 33 didDraw: {
24 enumerable: false, 34 enumerable: false,
25 value: function() {} 35 value: function() {
36 var that=this;
37
38 this.fileInputField.selectDirectory = true;
39
40 this.newFileName.addEventListener("blur", function(evt){that.handleNewFileNameOnblur(evt);}, false);
41 }
42
43 },
44
45 handleNewFileNameOnblur:{
46 value:function(evt){
47 if(this.newFileName.value !== ""){
48 var newFileNameSetEvent = document.createEvent("Events");
49 newFileNameSetEvent.initEvent("newFileNameSet", false, false);
50 newFileNameSetEvent.newFileName = this.newFileName.value;
51 this.eventManager.dispatchEvent(newFileNameSetEvent);
52 }
53 }
26 } 54 }
27 55
28}); \ No newline at end of file 56}); \ No newline at end of file