diff --git a/addons/mail/static/src/css/mail.css b/addons/mail/static/src/css/mail.css index 874a0e87a11..2a2c70d804c 100644 --- a/addons/mail/static/src/css/mail.css +++ b/addons/mail/static/src/css/mail.css @@ -311,11 +311,16 @@ } /* body_html: cleditor */ -div.cleditorMain { +/*.openerp div.cleditorMain { width: 468px !important; - height: 100px !important; + height: 115px !important; } +.openerp div.cleditorMain iframe { + width: 468px !important; + height: 90px !important; +}*/ + /* ------------------------------------------------------------ */ /* Messages layout diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js index 1ec18343fb9..6288a27b837 100644 --- a/addons/mail/static/src/js/mail.js +++ b/addons/mail/static/src/js/mail.js @@ -589,12 +589,8 @@ openerp.mail = function(session) { display_comments: function (records) { var self = this; + // sort comments mail.ChatterUtils.sort_comments(this.comments_structure, records, this.params.parent_id); - - /* WIP: map matched regexp -> records to browse with name */ - //_(records).each(function (record) { - //self.do_check_internal_links(record.body_text); - //}); //build attachments download urls and compute time-relative from dates for (var k in records) { @@ -635,6 +631,7 @@ openerp.mail = function(session) { /** Displays a record, performs text/link formatting */ display_comment: function (record) { record.body = mail.ChatterUtils.do_text_nl2br(record.body, true); + // if (record.type == 'email' && record.state == 'received') { if (record.type == 'email') { record.mini_url = ('/mail/static/src/img/email_icon.png'); } else {