diff options
author | Ananya Sen | 2012-03-22 10:46:39 -0700 |
---|---|---|
committer | Ananya Sen | 2012-03-22 10:46:39 -0700 |
commit | 7a7ac1d6479155760d99b7ecdf5a8d1f63e25f24 (patch) | |
tree | c20438334b30d969fbed01ceef33fe5dad700fc9 /js/io/ui/save-as-dialog.reel/save-as-dialog.js | |
parent | f639ae09013dfb6559891bbbe560bd5303a05f97 (diff) | |
download | ninja-7a7ac1d6479155760d99b7ecdf5a8d1f63e25f24.tar.gz |
IKNINJA-1361: autofocus and auto-select file name on open of new file and save as dialog
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/io/ui/save-as-dialog.reel/save-as-dialog.js')
-rw-r--r-- | js/io/ui/save-as-dialog.reel/save-as-dialog.js | 3 |
1 files changed, 3 insertions, 0 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 4d07ca66..1910f30d 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 | |||
@@ -60,6 +60,9 @@ var SaveAsDialog = exports.SaveAsDialog = Montage.create(Component, { | |||
60 | this.okButton.addEventListener("click", function(evt){self.handleOkButtonAction(evt);}, false); | 60 | this.okButton.addEventListener("click", function(evt){self.handleOkButtonAction(evt);}, false); |
61 | this.cancelButton.addEventListener("click", function(evt){self.handleCancelButtonAction(evt);}, false); | 61 | this.cancelButton.addEventListener("click", function(evt){self.handleCancelButtonAction(evt);}, false); |
62 | 62 | ||
63 | this.newFileName.focus(); | ||
64 | this.newFileName.select(); | ||
65 | |||
63 | this.enableOk(); | 66 | this.enableOk(); |
64 | } | 67 | } |
65 | }, | 68 | }, |