From 4c04a723fbd8af4bb61837b40a8ef44c078a68b8 Mon Sep 17 00:00:00 2001 From: Rohan Patel Date: Fri, 23 Dec 2016 11:03:06 +0530 Subject: [PATCH] [FIX] mail: defined event other wise it will only works on chrome --- addons/mail/static/src/js/extended_chat_window.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mail/static/src/js/extended_chat_window.js b/addons/mail/static/src/js/extended_chat_window.js index b4ec3fa9282..f7d2459d28a 100644 --- a/addons/mail/static/src/js/extended_chat_window.js +++ b/addons/mail/static/src/js/extended_chat_window.js @@ -48,7 +48,7 @@ return ChatWindow.extend({ on_keydown: function (event) { event.stopPropagation(); }, - on_click_expand: _.debounce(function () { + on_click_expand: _.debounce(function (event) { event.preventDefault(); var options = {clear_breadcrumbs: true, active_id: this.channel_id}; this.do_action('mail.mail_channel_action_client_chat', options).then(function () {