summaryrefslogtreecommitdiff
path: root/addons/website/static/src
diff options
context:
space:
mode:
authorBenjamin Vray <bvr@odoo.com>2020-01-31 12:37:27 +0000
committerqsm-odoo <qsm@odoo.com>2020-03-12 15:00:38 +0000
commit1a323596cfce62f3651c770f8cb35efa89b97426 (patch)
tree8c8135b07f4e65cb374c3516768a0383139608f5 /addons/website/static/src
parent490723b40606f2d51154fdc4984a13d19df89b93 (diff)
[FIX] website: restore hidden indicators in gallery snippet
Indicators were hidden in editor when switching to slideshow mode from any other mode. Because the class of the selected mode was defined after rendering and we need this class before the rendering. This also fixes other small issues when switching between different modes. Part of https://github.com/odoo/odoo/pull/44180 task-2162952 closes odoo/odoo#47519 X-original-commit: a99150b11a463901121bbe9751370231e3564ca2 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/website/static/src')
-rw-r--r--addons/website/static/src/snippets/s_image_gallery/options.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website/static/src/snippets/s_image_gallery/options.js b/addons/website/static/src/snippets/s_image_gallery/options.js
index e796b5a16d3..22e84298c20 100644
--- a/addons/website/static/src/snippets/s_image_gallery/options.js
+++ b/addons/website/static/src/snippets/s_image_gallery/options.js
@@ -205,10 +205,10 @@ options.registry.gallery = options.Class.extend({
mode: function (previewMode, widgetValue, params) {
widgetValue = widgetValue || 'slideshow'; // FIXME should not be needed
this.$target.css('height', '');
- this[widgetValue]();
this.$target
.removeClass('o_nomode o_masonry o_grid o_slideshow')
.addClass('o_' + widgetValue);
+ this[widgetValue]();
this.trigger_up('cover_update');
},
/**