MDL-56431 messaging: Set focus to the write a message box.

This commit is contained in:
Adrian Greeve
2016-11-23 09:13:51 +00:00
committed by Dan Poltawski
parent d14207fd25
commit 58c2684db2
2 changed files with 2 additions and 3 deletions
File diff suppressed because one or more lines are too long
+1 -2
View File
@@ -38,7 +38,6 @@ define(['jquery', 'core/ajax', 'core/templates', 'core/notification', 'core/cust
BLOCKTIME: "[data-region='blocktime']",
CANCELDELETEMESSAGES: "[data-action='cancel-delete-messages']",
CONTACT: "[data-region='contact']",
CONTACTPROFILE: "[data-action='view-contact-profile']",
CONVERSATIONS: "[data-region='contacts'][data-region-content='conversations']",
DELETEALLMESSAGES: "[data-action='delete-all-messages']",
DELETEMESSAGES: "[data-action='delete-messages']",
@@ -208,7 +207,7 @@ define(['jquery', 'core/ajax', 'core/templates', 'core/notification', 'core/cust
this._addScrollEventListener(numberreceived);
// Restart the poll timer.
this._backoffTimer.restart();
this.messageArea.find(SELECTORS.CONTACTPROFILE).focus();
this.messageArea.find(SELECTORS.SENDMESSAGETEXT).focus();
}.bind(this)).fail(Notification.exception);
};