Browse Source

[REF] rename show_send_message_button variable to channels_show_send_button

pull/22/head
x620 8 years ago
parent
commit
3218b251cc
  1. 4
      mail_base/static/src/js/base.js
  2. 2
      mail_sent/static/src/js/sent.js

4
mail_base/static/src/js/base.js

@ -65,7 +65,7 @@ var ChatAction = core.action_registry.get('mail.chat.instant_messaging');
ChatAction.include({
init: function(parent, action, options) {
this._super.apply(this, arguments);
this.show_send_message_button = ['channel_inbox'];
this.channels_show_send_button = ['channel_inbox'];
this.channels_display_subject = [];
},
start: function() {
@ -105,7 +105,7 @@ ChatAction.include({
return $.when(result).done(function() {
self.$buttons
.find('.o_mail_chat_button_new_message')
.toggle(self.show_send_message_button.indexOf(channel.id) != -1);
.toggle(self.channels_show_send_button.indexOf(channel.id) != -1);
});
},
get_thread_rendering_options: function (messages) {

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

@ -22,7 +22,7 @@ ChatAction.include({
this._super.apply(this, arguments);
var channel_name = 'channel_sent';
// Add channel Sent for show "Send message" button
this.show_send_message_button.push(channel_name);
this.channels_show_send_button.push(channel_name);
// Add channel Sent for enable "display_subject" option
this.channels_display_subject.push(channel_name);
}

Loading…
Cancel
Save