diff options
| author | Priyanka Kakadiya <pka@odoo.com> | 2018-05-30 10:19:05 +0530 |
|---|---|---|
| committer | Alexandre Kühn <aku@odoo.com> | 2018-07-24 13:10:48 +0200 |
| commit | 66b44a5d8a5e2a9abd6381cd074dcff4d3487f1a (patch) | |
| tree | 725092b56a6b7669c915bdcdc395a60e404221eb /addons/mail/static/src | |
| parent | a56372a4caa8b716ac0a4c36b3265ddce2d7b8d1 (diff) | |
[FIX] mail: auto-focus input on open thread in Discuss (touch and non-mobile devices).
Before this commit, when opening a discuss thread with a touch device that is
not mobile (e.g. laptop with a touchscreen), the focus was not set on the input
automatically.
The intent behaviour is to auto-set the focus on non-mobile device including
touch devices. This commit fixes this issue for touch and non-mobile devices.
Task-ID 1838244
Diffstat (limited to 'addons/mail/static/src')
| -rw-r--r-- | addons/mail/static/src/js/discuss.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/static/src/js/discuss.js b/addons/mail/static/src/js/discuss.js index 4208fb41cfe..e063ff247ee 100644 --- a/addons/mail/static/src/js/discuss.js +++ b/addons/mail/static/src/js/discuss.js @@ -895,7 +895,7 @@ var Discuss = AbstractAction.extend(ControlPanelMixin, { this._basicComposer.do_toggle(this._thread.getType() !== 'mailbox' && !this._thread.isMassMailing()); this._extendedComposer.do_toggle(this._thread.getType() !== 'mailbox' && !!this._thread.isMassMailing()); - if (!config.device.touch) { + if (!config.device.isMobile) { var composer = this._thread.getType() !== 'mailbox' && this._thread.isMassMailing() ? this._extendedComposer : this._basicComposer; |
