diff options
| author | Christophe Simonis <chs@odoo.com> | 2014-09-05 15:28:22 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2014-09-05 15:28:22 +0200 |
| commit | 31bf30d2d0eb78baaa36360b99fe58bf7cd4c9e7 (patch) | |
| tree | d7be61ecd6bb4c8b5552e39b03e2a64eebbbf323 /addons/mail/static/src | |
| parent | afba9e8817c458640ae446ac7aaaab79be4fe1e9 (diff) | |
| parent | ed1c173971968eaa96693cb4e1547efa6e6c34e0 (diff) | |
[MERGE] forward port of branch 8.0 up to ed1c173
Diffstat (limited to 'addons/mail/static/src')
| -rw-r--r-- | addons/mail/static/src/css/mail.css | 3 | ||||
| -rw-r--r-- | addons/mail/static/src/js/announcement.js | 10 |
2 files changed, 12 insertions, 1 deletions
diff --git a/addons/mail/static/src/css/mail.css b/addons/mail/static/src/css/mail.css index e7da638b256..841f1ac0153 100644 --- a/addons/mail/static/src/css/mail.css +++ b/addons/mail/static/src/css/mail.css @@ -86,6 +86,9 @@ .openerp .oe_mail .oe_msg .oe_msg_content .oe_msg_body pre { white-space: pre-wrap; } +.openerp .oe_mail .oe_msg .oe_msg_content .oe_msg_body blockquote { + font-size: 1em; +} .openerp .oe_mail .oe_msg .oe_msg_content .oe_msg_body * { text-overflow:ellipsis; word-wrap: break-word; diff --git a/addons/mail/static/src/js/announcement.js b/addons/mail/static/src/js/announcement.js index 95d4dc6e1ff..7afb25a7da0 100644 --- a/addons/mail/static/src/js/announcement.js +++ b/addons/mail/static/src/js/announcement.js @@ -31,13 +31,21 @@ openerp_announcement = function(instance) { var close = function() { var ttl = 7*24*60*60; self.session.set_cookie('ab', 'c', ttl); - $bar.slideUp('slow'); + $bar.slideUp(); + setTimeout(function () { + $('.openerp_webclient_container').css('height', 'calc(100% - 34px)'); + }, 400); }; + var height = $('#announcement_bar_table').outerHeight() + + $('#oe_main_menu_navbar').outerHeight(); + $('.openerp_webclient_container').css('height', 'calc(100% - ' + height + 'px)'); $bar.find('.close').on('click', close); self.trigger('ab_loaded', $bar); }); $('head').append($css); + }).fail(function(result, ev){ + ev.preventDefault(); }); } }); |
