Browse Source

[FIX] change function from .includes() to .indexOf()

pull/22/head
x620 9 years ago
parent
commit
1dc49ee7fd
  1. 2
      mail_sent/static/src/js/sent.js

2
mail_sent/static/src/js/sent.js

@ -26,7 +26,7 @@ ChatAction.include({
return $.when(result).done(function() { return $.when(result).done(function() {
self.$buttons self.$buttons
.find('.o_mail_chat_button_new_message') .find('.o_mail_chat_button_new_message')
.toggle(self.show_send_message_button.includes(channel.id));
.toggle(self.show_send_message_button.indexOf(channel.id) != -1);
}); });
}, },
get_thread_rendering_options: function (messages) { get_thread_rendering_options: function (messages) {

Loading…
Cancel
Save