summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2017-04-21 16:15:42 +0200
committerAaron Bohy <aab@odoo.com>2017-04-25 08:07:17 +0200
commit764127357c7edbfc2b7f351a3ea10c46d531020f (patch)
tree2bdba6d859c8b16f2b82959c19d8e55daa67c17c /addons/web/static/src/js/views/basic/basic_controller.js
parentf5bfa3d3b653c8ec8a9a1820eeff995a7f954ca9 (diff)
[FIX] mail: re-bind handlers on chatter buttons
When a user opens a record in a form view, the chatter is displayed. Then, if he clicks on 'Create', the chatter is removed from the DOM (there is no chatter in create mode). After saving the newly created record, the chatter is displayed again, but the same widget's instance is kept. However, when being removed from the DOM, the event handlers bound on elements of the chatter (e.g. 'New Message', 'Log a Note'... buttons) are automatically unbound. So before this rev., the buttons didn't work anymore once the form view had switched to create mode. In this commit, we detach the chatter's $el before updating the view, so that its handlers aren't unbound when the old content is replaced by the new one.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions