[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>
This commit is contained in:
qsm-odoo
2019-07-29 09:10:40 +00:00
parent d6ad3e1a76
commit 263e980817
@@ -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 () {