[FIX] mail: discuss: correctly bind handler
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user