diff --git a/addons/mail/mail_thread.py b/addons/mail/mail_thread.py index 6c9d4dc3904..615dcf9c306 100644 --- a/addons/mail/mail_thread.py +++ b/addons/mail/mail_thread.py @@ -251,6 +251,7 @@ class mail_thread(osv.Model): Please see message_search for more information about the parameters. """ + print 'MSG READ', uid, ids, fetch_ancestors, ancestor_ids, limit, offset, domain, context message_ids = self.message_search(cr, uid, ids, fetch_ancestors, ancestor_ids, limit, offset, domain, context=context) messages = self.pool.get('mail.message').read(cr, uid, message_ids, context=context) @@ -753,17 +754,6 @@ class mail_thread(osv.Model): # Subscription mechanism #------------------------------------------------------ - # FP Note: replaced by message_follower_ids - # def message_get_followers(self, cr, uid, ids, context=None): - - def message_read_followers(self, cr, uid, ids, fields=['id', 'name', 'image_small'], context=None): - """ Returns the current document followers as a read result. Used - mainly for Chatter having only one method to call to have - details about users. - """ - user_ids = self.message_get_followers(cr, uid, ids, context=context) - return self.pool.get('res.users').read(cr, uid, user_ids, fields=fields, context=context) - def message_is_follower(self, cr, uid, ids, user_id = None, context=None): """ Check if uid or user_id (if set) is a follower to the current document. diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js index 9612f73a6b8..a6d6f17958e 100644 --- a/addons/mail/static/src/js/mail.js +++ b/addons/mail/static/src/js/mail.js @@ -164,18 +164,6 @@ openerp.mail = function(session) { * 5. 'My Label' */ - /** Removes html tags, except b, em, br, ul, li */ - do_text_remove_html_tags: function (string) { - var html = $('
').text(string.replace(/\s+/g, ' ')).html().replace(new RegExp('<(/)?(b|em|br|br /|ul|li|div)\\s*>', 'gi'), '<$1$2>'); - return html; - }, - - /** Replaces line breaks by html line breaks (br) */ - do_text_nl2br: function (str, is_xhtml) { - var break_tag = (is_xhtml || typeof is_xhtml === 'undefined') ? '