diff options
Diffstat (limited to 'js/io/workflow/newFileDialog/new-file-location.reel/new-file-location.js')
-rwxr-xr-x | js/io/workflow/newFileDialog/new-file-location.reel/new-file-location.js | 56 |
1 files changed, 0 insertions, 56 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 deleted file mode 100755 index 805b44a4..00000000 --- a/js/io/workflow/newFileDialog/new-file-location.reel/new-file-location.js +++ /dev/null | |||
@@ -1,56 +0,0 @@ | |||
1 | /* <copyright> | ||
2 | This file contains proprietary software owned by Motorola Mobility, Inc.<br/> | ||
3 | No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/> | ||
4 | (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. | ||
5 | </copyright> */ | ||
6 | |||
7 | var Montage = require("montage/core/core").Montage; | ||
8 | var Component = require("montage/ui/component").Component; | ||
9 | var newFileWorkflowControllerModule = require("js/io/workflow/newFileDialog/new-file-workflow-controller"); | ||
10 | |||
11 | var NewFileLocation = exports.NewFileLocation = Montage.create(Component, { | ||
12 | |||
13 | templateHeight:{ | ||
14 | enumerable: true, | ||
15 | value:"25 px" | ||
16 | }, | ||
17 | |||
18 | templateWidth:{ | ||
19 | enumerable: true, | ||
20 | value:"25 px" | ||
21 | }, | ||
22 | |||
23 | willDraw: { | ||
24 | enumerable: false, | ||
25 | value: function() {} | ||
26 | }, | ||
27 | |||
28 | draw: { | ||
29 | enumerable: false, | ||
30 | value: function() {} | ||
31 | }, | ||
32 | |||
33 | didDraw: { | ||
34 | enumerable: false, | ||
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 | } | ||
54 | } | ||
55 | |||
56 | }); \ No newline at end of file | ||