From 8397abd87148c628edec4e7279f8a6dc6b8564b9 Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Tue, 12 Jan 2016 11:27:58 +0100 Subject: [IMP] mail: make chat windows somehow usable in mobile --- addons/mail/static/src/js/chat_window.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'addons/mail/static/src/js/chat_window.js') diff --git a/addons/mail/static/src/js/chat_window.js b/addons/mail/static/src/js/chat_window.js index 44304b81cda..9f94310f4ff 100644 --- a/addons/mail/static/src/js/chat_window.js +++ b/addons/mail/static/src/js/chat_window.js @@ -3,6 +3,7 @@ odoo.define('mail.ChatWindow', function (require) { var ChatThread = require('mail.ChatThread'); +var config = require('web.config'); var core = require('web.core'); var Widget = require('web.Widget'); @@ -107,8 +108,10 @@ return Widget.extend({ this.trigger("close_chat_session"); }, on_click_fold: function () { - this.toggle_fold(); - this.trigger("fold_channel", this.channel_id, this.folded); + if (config.device.size_class !== config.device.SIZES.XS) { + this.toggle_fold(); + this.trigger("fold_channel", this.channel_id, this.folded); + } }, }); -- cgit v1.2.3