[IMP] see more message clickable on entire line, and correctly centered
authorFrédéric van der Essen <fva@openerp.com>
Tue, 30 Oct 2012 13:43:42 +0000 (14:43 +0100)
committerFrédéric van der Essen <fva@openerp.com>
Tue, 30 Oct 2012 13:43:42 +0000 (14:43 +0100)
bzr revid: fva@openerp.com-20121030134342-cddrzs8vyc8d3gr2

addons/mail/static/src/css/mail.css
addons/mail/static/src/js/mail.js

index 49d8877..8936f5c 100644 (file)
 
 .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;
 }
 .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;
index 11f8a95..3dfb59e 100644 (file)
@@ -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: '&atilde',
                 detailClass: 'oe_msg_tail',
                 moreClass: 'oe_mail_expand',
-                lessClass: 'oe_mail_reduce',
+                lessClass: 'oe_mail_reduce oe_e',
                 });
         },
 
@@ -954,7 +954,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();
                     }
                 }
             }