From df45cf65a872699f97f9ed4baac4baa40b62cef2 Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Tue, 27 Jun 2017 15:25:34 +0200 Subject: [PATCH] [FIX] mail: discuss: correctly bind handler --- addons/mail/static/src/js/client_action.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/mail/static/src/js/client_action.js b/addons/mail/static/src/js/client_action.js index e611404b07c..52e67c60f68 100644 --- a/addons/mail/static/src/js/client_action.js +++ b/addons/mail/static/src/js/client_action.js @@ -221,7 +221,9 @@ var ChatAction = Widget.extend(ControlPanelMixin, { this.$buttons.on('click', '.o_mail_chat_button_mark_read', function () { chat_manager.mark_all_as_read(self.channel, self.domain); }); - this.$buttons.on('click', '.o_mail_chat_button_unstar_all', chat_manager.unstar_all); + this.$buttons.on('click', '.o_mail_chat_button_unstar_all', function () { + chat_manager.unstar_all(); + }); this.thread.on('redirect', this, function (res_model, res_id) { chat_manager.redirect(res_model, res_id, this.set_channel.bind(this));