diff --git a/addons/mail/static/src/css/mail.css b/addons/mail/static/src/css/mail.css index 49d88776572..8936f5c3a3c 100644 --- a/addons/mail/static/src/css/mail.css +++ b/addons/mail/static/src/css/mail.css @@ -299,6 +299,7 @@ .openerp .oe_mail .oe_msg_content.oe_msg_more_message{ text-align: right; + cursor: pointer; } .openerp .oe_mail .oe_msg_content.oe_msg_more_message .oe_separator{ height: 0; @@ -310,7 +311,7 @@ } .openerp .oe_mail .oe_msg_more_message .oe_msg_fetch_more { background: white; - margin-right: 280px; + margin-right: 210px; padding-left: 8px; padding-right: 8px; text-decoration: none; diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js index d4917d829df..42976eff1a5 100644 --- a/addons/mail/static/src/js/mail.js +++ b/addons/mail/static/src/js/mail.js @@ -460,7 +460,7 @@ openerp.mail = function (session) { * Bind events in the widget. Each event is slightly described * in the function. */ bind_events: function () { - this.$el.on('click', 'a.oe_msg_fetch_more', this.on_expandable); + this.$el.on('click', '.oe_msg_more_message', this.on_expandable); }, animated_destroy: function (fadeTime) { @@ -669,10 +669,10 @@ openerp.mail = function (session) { this.$('.oe_msg_body:first').expander({ slicePoint: this.options.truncate_limit, expandText: 'read more', - userCollapseText: '[^]', + userCollapseText: 'ã', detailClass: 'oe_msg_tail', moreClass: 'oe_mail_expand', - lessClass: 'oe_mail_reduce', + lessClass: 'oe_mail_reduce oe_e', }); }, @@ -957,7 +957,7 @@ openerp.mail = function (session) { /* bottom of the screen */ var bottom = $(window).scrollTop()+$(window).height()+200; if (bottom > pos.top) { - $last.find('.oe_msg_fetch_more').click(); + $last.find('.oe_msg_more_message').click(); } } }