From 032d96ffbd8ad0b32762c03e3ea7e65acb8eff9e Mon Sep 17 00:00:00 2001 From: Benjamin Vray Date: Thu, 4 Mar 2021 10:36:52 +0000 Subject: [PATCH] [FIX] website: state not saved for accordion snippet MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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#67276 X-original-commit: 18af2ecade9482b5243059aefbfa79410ebf59a6 Signed-off-by: Jérémy Kersten (jke) --- addons/website/static/src/js/editor/snippets.options.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/website/static/src/js/editor/snippets.options.js b/addons/website/static/src/js/editor/snippets.options.js index cb7bba8c7fd..c4342525c11 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); },