diff options
| author | Aaron Bohy <aab@odoo.com> | 2015-10-26 16:46:09 +0100 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2015-11-03 16:19:35 +0100 |
| commit | 388f7a7db9cd42142d86a768d1438af5af2f3b73 (patch) | |
| tree | 1b1f7963d4ddcb253580b81d1893f0bd100f5798 /addons/mail/static/src/js/thread.js | |
| parent | b61c0d24993761b936766665823869f831fbb737 (diff) | |
[IMP] mail: composer: mention channels feature
Generalizes the mention mechanism to allow mentionning partners (@) and
channels (#).
When a user clicks on a mentionned channel, it subscribes to it and joins it.
If the mention is in a chatter, the user is redirected to the Discuss client
action.
Moves the RPCs to get the menu and action id of the Discuss client action from
systray.js to chat_managaer.js as they are now needed in the chatter as well.
Also fixes the on_channel_clicked redirection for notification message
(created/joined/left #channel). Those three messages are now of type
notification, and correctly redirect on click.
Diffstat (limited to 'addons/mail/static/src/js/thread.js')
| -rw-r--r-- | addons/mail/static/src/js/thread.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/static/src/js/thread.js b/addons/mail/static/src/js/thread.js index 32444085936..76d10ed3cdd 100644 --- a/addons/mail/static/src/js/thread.js +++ b/addons/mail/static/src/js/thread.js @@ -83,7 +83,7 @@ var Thread = Widget.extend({ on_channel_redirect: function (event) { event.preventDefault(); - var channel_id = $(event.target).data('channel-id'); + var channel_id = $(event.target).data('oe-id'); this.trigger('redirect_to_channel', channel_id); }, |
