From 6e35fdb9f63e3d3c29d3bba99b4e8d32c74200d9 Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Fri, 14 Dec 2012 11:14:28 +0100 Subject: [PATCH] [FIX] mail: display of the placeholder bzr revid: chm@openerp.com-20121214101428-7vnyjx2iyeel3wvv --- addons/mail/static/src/css/mail.css | 14 ++++++++++++++ addons/mail/static/src/js/mail.js | 8 ++++---- addons/mail/static/src/xml/mail.xml | 8 +++++--- 3 files changed, 23 insertions(+), 7 deletions(-) diff --git a/addons/mail/static/src/css/mail.css b/addons/mail/static/src/css/mail.css index 8e739af8886..56cfcf6b489 100644 --- a/addons/mail/static/src/css/mail.css +++ b/addons/mail/static/src/css/mail.css @@ -223,6 +223,20 @@ height: 24px; width: 100%; } +.openerp .oe_mail .oe_msg.oe_msg_composer_compact .oe_compact{ + height: 24px; + width: 100%; + padding: 2px 4px; + border: 1px solid #CCC; + -moz-border-radius: 3px; + -webkit-border-radius: 3px; + border-radius: 3px; + background: white; + font-size: 14px; + color: #AAA; + font-style: italic; + word-spacing: 3px; +} /* --------------------- ATTACHMENTS --------------------- */ diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js index b86aad91658..fa22bbee5fa 100644 --- a/addons/mail/static/src/js/mail.js +++ b/addons/mail/static/src/js/mail.js @@ -470,7 +470,7 @@ openerp.mail = function (session) { bind_events: function () { var self = this; - this.$('textarea.oe_compact').on('focus', _.bind( this.on_compose_expandable, this)); + this.$('.oe_compact').on('click', _.bind( this.on_compose_expandable, this)); // set the function called when attachments are added this.$('input.oe_form_binary_file').on('change', _.bind( this.on_attachment_change, this) ); @@ -483,11 +483,11 @@ openerp.mail = function (session) { this.$('.oe_msg_footer').on('mousedown', _.bind( function () { this.stay_open = true; }, this)); var ev_stay = {}; ev_stay.mouseup = ev_stay.keydown = ev_stay.focus = function () { self.stay_open = false; }; - this.$('textarea:not(.oe_compact)').on(ev_stay); - this.$('textarea:not(.oe_compact)').autosize(); + this.$('textarea').on(ev_stay); + this.$('textarea').autosize(); // auto close - this.$('textarea:not(.oe_compact)').on('blur', _.bind( this.on_compose_expandable, this)); + this.$('textarea').on('blur', _.bind( this.on_compose_expandable, this)); // event: delete child attachments off the oe_msg_attachment_list box this.$(".oe_msg_attachment_list").on('click', '.oe_delete', this.on_attachment_delete); diff --git a/addons/mail/static/src/xml/mail.xml b/addons/mail/static/src/xml/mail.xml index 67449cca0ba..fb796bc9ed7 100644 --- a/addons/mail/static/src/xml/mail.xml +++ b/addons/mail/static/src/xml/mail.xml @@ -39,9 +39,11 @@
-