summaryrefslogtreecommitdiff
path: root/addons/mail
diff options
context:
space:
mode:
authorsha-odoo <sha@odoo.com>2015-05-25 10:40:58 +0530
committerThibault Delavallée <tde@openerp.com>2015-05-28 11:56:16 +0200
commitd6554e54d26b10b2edb24655be1ada5fcecab943 (patch)
tree06cf7e49dddd9c0327b7fd4d2a9a36d69e523b19 /addons/mail
parent272cbf2dfe5b591050d2cc594cb71eab11fb7c3e (diff)
[FIX] mail: fixed top button to compose email that was broken
when merging timeline.
Diffstat (limited to 'addons/mail')
-rw-r--r--addons/mail/static/src/js/mail.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js
index 4872200ef15..233598c33b1 100644
--- a/addons/mail/static/src/js/mail.js
+++ b/addons/mail/static/src/js/mail.js
@@ -1512,7 +1512,7 @@ var ComposeMessageTopButton = Widget.extend({
on_compose_message: function (ev) {
ev.preventDefault();
var ctx = {}
- if ($('a.oe_compose_post') && $('a.oe_compose_post').is(":visible") == true &&
+ if ($('button.o_timeline_compose_post') && $('button.o_timeline_compose_post').is(":visible") == true &&
(this.getParent()).getParent().action_manager.inner_widget.active_view.type == 'form'){
ctx = {
'default_res_id': (this.getParent()).getParent().action_manager.inner_widget.active_view.controller.datarecord.id,