[FIX] mail: discuss: correctly bind handler

This commit is contained in:
Aaron Bohy
2017-06-27 15:25:34 +02:00
parent 964b7c378f
commit df45cf65a8
+3 -1
View File
@@ -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));