Browse Source

Merge pull request #41 from x620/mail-addons-9.0-res_partner_mails_count

[FIX] console error: Uncaught TypeError: Cannot read property 'name' of undefined
pull/6/head
Ivan Yelizariev 9 years ago
parent
commit
8588fc0865
  1. 4
      mail_base/static/src/js/base.js

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

@ -698,10 +698,10 @@ var cls = new MailTools();
chat_manager.mail_tools = cls; chat_manager.mail_tools = cls;
// we add this function this way in order to make them extendable via MailTools.include({...}) // we add this function this way in order to make them extendable via MailTools.include({...})
chat_manager.make_message = function(){ chat_manager.make_message = function(){
chat_manager.mail_tools.make_message.apply(chat_manager.mail_tools, arguments)
return chat_manager.mail_tools.make_message.apply(chat_manager.mail_tools, arguments)
}; };
chat_manager.make_channel = function(){ chat_manager.make_channel = function(){
chat_manager.mail_tools.make_channel.apply(chat_manager.mail_tools, arguments)
return chat_manager.mail_tools.make_channel.apply(chat_manager.mail_tools, arguments)
}; };
chat_manager.post_message = function (data, options) { chat_manager.post_message = function (data, options) {
options = options || {}; options = options || {};

Loading…
Cancel
Save