From 800f211937e4e09a02779c20c6c79ce6edd833f1 Mon Sep 17 00:00:00 2001 From: Gislene Pereira Date: Sun, 25 Oct 2015 16:20:00 -0300 Subject: [#414] - Setting the focus to Recipients To Box and fixing tab index. --- web-ui/app/js/mail_view/ui/compose_box.js | 2 +- web-ui/app/js/mixins/with_mail_edit_base.js | 1 + web-ui/app/templates/compose/compose_box.hbs | 4 ++-- web-ui/app/templates/compose/recipients.hbs | 8 ++++---- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/web-ui/app/js/mail_view/ui/compose_box.js b/web-ui/app/js/mail_view/ui/compose_box.js index 28f6dc83..92588310 100644 --- a/web-ui/app/js/mail_view/ui/compose_box.js +++ b/web-ui/app/js/mail_view/ui/compose_box.js @@ -70,7 +70,7 @@ define( this.after('initialize', function () { this.renderComposeBox(); - this.select('subjectBox').focus(); + this.select('toBox').focus(); this.on(this.select('cancelButton'), 'click', this.showNoMessageSelected); this.on(document, events.mail.deleted, this.mailDeleted); diff --git a/web-ui/app/js/mixins/with_mail_edit_base.js b/web-ui/app/js/mixins/with_mail_edit_base.js index b4a2b0c8..b80a48cd 100644 --- a/web-ui/app/js/mixins/with_mail_edit_base.js +++ b/web-ui/app/js/mixins/with_mail_edit_base.js @@ -38,6 +38,7 @@ define( cancelButton: '#cancel-button', trashButton: '#trash-button', toArea: '#recipients-to-area', + toBox: '#recipients-to-box', ccArea: '#recipients-cc-area', bccArea: '#recipients-bcc-area', ccsTrigger: '#ccs-trigger', diff --git a/web-ui/app/templates/compose/compose_box.hbs b/web-ui/app/templates/compose/compose_box.hbs index 47b1e658..05498946 100644 --- a/web-ui/app/templates/compose/compose_box.hbs +++ b/web-ui/app/templates/compose/compose_box.hbs @@ -11,11 +11,11 @@
- +
- +
diff --git a/web-ui/app/templates/compose/recipients.hbs b/web-ui/app/templates/compose/recipients.hbs index 6ec29ae5..a632f1d9 100644 --- a/web-ui/app/templates/compose/recipients.hbs +++ b/web-ui/app/templates/compose/recipients.hbs @@ -2,18 +2,18 @@
- +
- +
- +
-
\ No newline at end of file + -- cgit v1.2.3