diff options
author | Ananya Sen | 2012-03-22 10:43:54 -0700 |
---|---|---|
committer | Ananya Sen | 2012-03-22 10:43:54 -0700 |
commit | 5b0ff2b7347d158876c366c51988a94570dda18b (patch) | |
tree | 52d4238267fdeb5a9ebe532fc6c1fbd07cabfdd3 /js/io/ui/new-file-dialog/new-file-location.reel/new-file-location.js | |
parent | 85bf9f937fa2ec46e42f791fc6815f7c2f5446ea (diff) | |
download | ninja-5b0ff2b7347d158876c366c51988a94570dda18b.tar.gz |
IKNINJA-1302 : more fix
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/io/ui/new-file-dialog/new-file-location.reel/new-file-location.js')
-rwxr-xr-x | js/io/ui/new-file-dialog/new-file-location.reel/new-file-location.js | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/js/io/ui/new-file-dialog/new-file-location.reel/new-file-location.js b/js/io/ui/new-file-dialog/new-file-location.reel/new-file-location.js index c4b7ea99..811231e4 100755 --- a/js/io/ui/new-file-dialog/new-file-location.reel/new-file-location.js +++ b/js/io/ui/new-file-dialog/new-file-location.reel/new-file-location.js | |||
@@ -32,14 +32,9 @@ var NewFileLocation = exports.NewFileLocation = Montage.create(Component, { | |||
32 | var newFileNameSetEvent = document.createEvent("Events"); | 32 | var newFileNameSetEvent = document.createEvent("Events"); |
33 | newFileNameSetEvent.initEvent("newFileNameSet", false, false); | 33 | newFileNameSetEvent.initEvent("newFileNameSet", false, false); |
34 | newFileNameSetEvent.newFileName = this.newFileName.value; | 34 | newFileNameSetEvent.newFileName = this.newFileName.value; |
35 | newFileNameSetEvent.keyCode = evt.keyCode; | ||
35 | this.eventManager.dispatchEvent(newFileNameSetEvent); | 36 | this.eventManager.dispatchEvent(newFileNameSetEvent); |
36 | } | 37 | } |
37 | if(evt.keyCode === 13){ | ||
38 | var enterPressedEvent = document.createEvent("Events"); | ||
39 | enterPressedEvent.initEvent("enterPressed", false, false); | ||
40 | enterPressedEvent.newFileName = this.newFileName.value; | ||
41 | this.eventManager.dispatchEvent(enterPressedEvent); | ||
42 | } | ||
43 | } | 38 | } |
44 | } | 39 | } |
45 | 40 | ||