diff options
| author | qsm-odoo <qsm@odoo.com> | 2019-07-29 09:10:40 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2019-07-29 09:10:40 +0000 |
| commit | 263e980817ef2a1f35ba3162eddb4fcbf267cff0 (patch) | |
| tree | f0bc4f58d8d36a102c79a132b6ac7a5b71e4938b /addons | |
| parent | d6ad3e1a76436969907b25d95c9369c16f429ecb (diff) | |
[FIX] website: restore folded ul option
The option which allows to create foldable lists was not working
anymore. Taking advantage of https://github.com/odoo/odoo/commit/62a234e6e21397986733152b448e89ee0353dcfb
solves the issue.
Note: the option should be improved a lot to be more beautiful / useful
but this will be a master task.
closes odoo/odoo#35249
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/website/static/src/js/editor/snippets.options.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/website/static/src/js/editor/snippets.options.js b/addons/website/static/src/js/editor/snippets.options.js index 16cfaa2f44a..c585241281b 100644 --- a/addons/website/static/src/js/editor/snippets.options.js +++ b/addons/website/static/src/js/editor/snippets.options.js @@ -425,7 +425,9 @@ options.registry.ul = options.Class.extend({ toggleClass: function () { this._super.apply(this, arguments); - this.$target.data('snippet-view').destroy(); + this.trigger_up('animation_stop_demand', { + $target: this.$target, + }); this.$target.find('.o_ul_toggle_self, .o_ul_toggle_next').remove(); this.$target.find('li:has(>ul,>ol)').map(function () { |
