From 4d7579b35730b7f7ece22da61857d9e9845b5aec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Tue, 26 Feb 2013 11:01:55 +0100 Subject: [PATCH] [IMP] Chatter: mailboxes do not have "Share a message or Log a note", but the good ol' textarea like chatter. bzr revid: tde@openerp.com-20130226100155-x38ub426vdpxr7b5 --- addons/mail/static/src/css/mail.css | 22 ++++++++++++++-------- addons/mail/static/src/js/mail.js | 1 + addons/mail/static/src/xml/mail.xml | 23 +++++++++++++++-------- 3 files changed, 30 insertions(+), 16 deletions(-) diff --git a/addons/mail/static/src/css/mail.css b/addons/mail/static/src/css/mail.css index 19b33e06261..50e7fed78b0 100644 --- a/addons/mail/static/src/css/mail.css +++ b/addons/mail/static/src/css/mail.css @@ -231,18 +231,24 @@ 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: 13px; color: #AAA; - font-style: bold; - text-align: center; word-spacing: 3px; cursor: text; } +.openerp .oe_mail .oe_msg.oe_msg_composer_compact .oe_compact_record{ + font-size: 13px; + font-style: bold; + text-align: center; +} +.openerp .oe_mail .oe_msg.oe_msg_composer_compact .oe_compact_inbox { + border: 1px solid #CCC; + -moz-border-radius: 3px; + -webkit-border-radius: 3px; + border-radius: 3px; + background: white; + font-size: 14px; + font-style: italic; +} /* d) I.E. tweaks for Message action icons */ diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js index 86fe0203d0a..4449a73b1a8 100644 --- a/addons/mail/static/src/js/mail.js +++ b/addons/mail/static/src/js/mail.js @@ -506,6 +506,7 @@ openerp.mail = function (session) { bind_events: function () { var self = this; + this.$('.oe_compact_inbox').on('click', self.on_toggle_quick_composer); this.$('.oe_compose_post').on('click', self.on_toggle_quick_composer); this.$('.oe_compose_log').on('click', self.on_toggle_quick_composer); this.$('input.oe_form_binary_file').on('change', _.bind( this.on_attachment_change, this)); diff --git a/addons/mail/static/src/xml/mail.xml b/addons/mail/static/src/xml/mail.xml index 260b51c5406..a1ad3b7253f 100644 --- a/addons/mail/static/src/xml/mail.xml +++ b/addons/mail/static/src/xml/mail.xml @@ -41,15 +41,22 @@
-
- + + + Share with my followers... +
+ + + +