diff options
| author | RomainLibert <rli@odoo.com> | 2019-06-27 18:48:36 +0200 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2019-07-05 13:03:18 +0200 |
| commit | 9cd3bcd4408be76168e1ab4c08f2d8e187096d79 (patch) | |
| tree | 4826e94cd60f7fe89e0fce27c94dbf74caf96f25 /addons/mail/static/src/js/chatter.js | |
| parent | a4f33b5bf5f0188251221fce7db8dd6e8b218005 (diff) | |
[IMP] mail: Move the attachment icon on the left
This is much better.
Diffstat (limited to 'addons/mail/static/src/js/chatter.js')
| -rw-r--r-- | addons/mail/static/src/js/chatter.js | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/addons/mail/static/src/js/chatter.js b/addons/mail/static/src/js/chatter.js index 7cabe960cdb..164a24cd7b8 100644 --- a/addons/mail/static/src/js/chatter.js +++ b/addons/mail/static/src/js/chatter.js @@ -89,18 +89,15 @@ var Chatter = Widget.extend({ */ start: function () { this._$topbar = this.$('.o_chatter_topbar'); - if(!this._disableAttachmentBox) { - this.$('.o_topbar_right_area').append(QWeb.render('mail.chatter.Attachment.Button', { - displayCounter: !!this.fields.thread, - count: this.record.data.message_attachment_count || 0, - })); - } // render and append the buttons this._$topbar.prepend(QWeb.render('mail.chatter.Buttons', { newMessageButton: !!this.fields.thread, logNoteButton: this.hasLogButton, scheduleActivityButton: !!this.fields.activity, isMobile: config.device.isMobile, + disableAttachmentBox: this._disableAttachmentBox, + displayCounter: !!this.fields.thread, + count: this.record.data.message_attachment_count || 0, })); // start and append the widgets var fieldDefs = _.invoke(this.fields, 'appendTo', $('<div>')); |
