diff options
| author | Benjamin Vray <bvr@odoo.com> | 2021-03-04 10:36:52 +0000 |
|---|---|---|
| committer | Benjamin Vray <bvr@odoo.com> | 2021-03-04 14:30:05 +0000 |
| commit | ea72517730dfcfc5d6eefeef0195e61468b66b57 (patch) | |
| tree | f8aecafadcd38e8169d5b5a4560f0341945151b1 /addons/website/static/src | |
| parent | 46de40dc54d04139b2319b342a7f0c7cb9318e84 (diff) | |
[FIX] website: state not saved for accordion snippet
Before this commit, the states (collapsed/not collapsed) of the tabs
of the accordion snippet were not saved if it was the only changement
in edit mode.
After this commit, we trigger a content change when the states of the
tabs is changed.
task-2442237
closes odoo/odoo#67252
X-original-commit: 18af2ecade9482b5243059aefbfa79410ebf59a6
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Diffstat (limited to 'addons/website/static/src')
| -rw-r--r-- | addons/website/static/src/js/editor/snippets.options.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/website/static/src/js/editor/snippets.options.js b/addons/website/static/src/js/editor/snippets.options.js index d830c99afa8..cb0d35947a8 100644 --- a/addons/website/static/src/js/editor/snippets.options.js +++ b/addons/website/static/src/js/editor/snippets.options.js @@ -1671,6 +1671,7 @@ options.registry.collapse = options.Class.extend({ var self = this; this.$target.on('shown.bs.collapse hidden.bs.collapse', '[role="tabpanel"]', function () { self.trigger_up('cover_update'); + self.$target.trigger('content_changed'); }); return this._super.apply(this, arguments); }, |
