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/save-as-dialog.reel | |
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/save-as-dialog.reel')
-rw-r--r-- | js/io/ui/save-as-dialog.reel/save-as-dialog.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/js/io/ui/save-as-dialog.reel/save-as-dialog.js b/js/io/ui/save-as-dialog.reel/save-as-dialog.js index 98749106..4d07ca66 100644 --- a/js/io/ui/save-as-dialog.reel/save-as-dialog.js +++ b/js/io/ui/save-as-dialog.reel/save-as-dialog.js | |||
@@ -66,7 +66,10 @@ var SaveAsDialog = exports.SaveAsDialog = Montage.create(Component, { | |||
66 | 66 | ||
67 | handleNewFileDirectorySet:{ | 67 | handleNewFileDirectorySet:{ |
68 | value:function(evt){ | 68 | value:function(evt){ |
69 | if(!!evt._event.newFileDirectory){ | 69 | if((evt.keyCode === 13) && !this.okButton.hasAttribute("disabled")){ |
70 | this.handleOkButtonAction(evt); | ||
71 | } | ||
72 | else if(!!evt._event.newFileDirectory){ | ||
70 | this.folderUri = evt._event.newFileDirectory; | 73 | this.folderUri = evt._event.newFileDirectory; |
71 | if(this.isValidUri(this.folderUri)){ | 74 | if(this.isValidUri(this.folderUri)){ |
72 | this.enableOk(); | 75 | this.enableOk(); |