diff options
| author | Sébastien Theys <seb@odoo.com> | 2020-03-06 17:32:35 +0000 |
|---|---|---|
| committer | Sébastien Theys <seb@odoo.com> | 2020-03-10 08:33:02 +0000 |
| commit | 5b87b5879c4d7d0a2a45a9cfc0bc5c19f6d85c7d (patch) | |
| tree | 431f8e765b59b05de307232902c49f7361c59a9b /addons/mail/static/src/js/services/mail_window_manager.js | |
| parent | b3ece2074a2cc40faf3b76d39fa86490239e8be0 (diff) | |
[FIX] mail: prevent hidden chat window close from opening home menu
opw-2210274
closes odoo/odoo#47245
X-original-commit: ca695425a2b06ffba15d7063fb0b8ea994f751d6
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Diffstat (limited to 'addons/mail/static/src/js/services/mail_window_manager.js')
| -rw-r--r-- | addons/mail/static/src/js/services/mail_window_manager.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/mail/static/src/js/services/mail_window_manager.js b/addons/mail/static/src/js/services/mail_window_manager.js index 9cbb77e529d..c0e8a1e77d3 100644 --- a/addons/mail/static/src/js/services/mail_window_manager.js +++ b/addons/mail/static/src/js/services/mail_window_manager.js @@ -381,6 +381,7 @@ MailManager.include({ } }) .on('click', '.o_thread_window_close', function (ev) { + ev.preventDefault(); var threadID = $(ev.currentTarget).closest('.o_thread_window_header') .data('thread-id'); var threadWindow = self._getHiddenThreadWindow(threadID); |
