From 81bc720be8c1915f8b8a9d172f06e5309adf0d47 Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Wed, 17 Oct 2012 17:09:41 +0200 Subject: [PATCH] [IMP]mail: js/dom in progress bzr revid: chm@openerp.com-20121017150941-bqwwxndhiytcu3pu --- addons/mail/static/src/js/mail.js | 7 +++---- addons/mail/static/src/xml/mail.xml | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js index 02b8479b0fc..62de7bf3842 100644 --- a/addons/mail/static/src/js/mail.js +++ b/addons/mail/static/src/js/mail.js @@ -136,7 +136,6 @@ openerp.mail = function(session) { this.options.thread={}; this.options.thread.display_on_thread = options.options.thread.display_on_thread; this.options.thread.show_attachment_delete = true; - this.options.thread.show_attachment_link = true; this.parent_thread= parent.messages!= undefined ? parent : false; @@ -161,11 +160,11 @@ openerp.mail = function(session) { var self = this; var render = $(session.web.qweb.render('mail.thread.message.attachments', {'widget': self})); if(!this.list_attachment){ - this.$('.oe_mail_compose_attachment_list').replaceWith( render ); + this.$('.oe_msg_attachment_list').replaceWith( render ); } else { this.list_attachment.replaceWith( render ); } - this.list_attachment = this.$("ul.oe_msg_attachments"); + this.list_attachment = this.$(".oe_msg_attachments"); // event: delete an attachment this.$el.on('click', '.oe_mail_attachment_delete', self.on_attachment_delete); @@ -602,7 +601,7 @@ openerp.mail = function(session) { }, expender: function(){ - this.$('div.oe_msg_body:first').expander({ + this.$('.oe_msg_body:first').expander({ slicePoint: this.options.truncate_limit, expandText: 'read more', userCollapseText: '[^]', diff --git a/addons/mail/static/src/xml/mail.xml b/addons/mail/static/src/xml/mail.xml index 03603b65a49..4952c72546b 100644 --- a/addons/mail/static/src/xml/mail.xml +++ b/addons/mail/static/src/xml/mail.xml @@ -59,7 +59,7 @@ Template used to display attachments in a mail.message --> -