diff options
| author | Benjamin Vray <bvr@odoo.com> | 2020-08-13 09:55:07 +0000 |
|---|---|---|
| committer | Benjamin Vray <bvr@odoo.com> | 2020-10-20 15:51:14 +0000 |
| commit | 797878862a0315fe92026ef4015b3ae6ea177cf6 (patch) | |
| tree | 7aedef6439d8998a00bd80683aa7830fc6626bc8 /addons/website/static/src/js | |
| parent | 746bacf680c74603f63f7b46304b8fb364e0d60e (diff) | |
[FIX] website: fix add slide carousel snippet
Before this commit, when adding a new slide, the data-target of the new
indicator was wrong because we were using the slide ID instead of the
carousel ID.
task-2318526
closes odoo/odoo#60381
X-original-commit: ac7a117ccc64df54cfd271ee4c4b62ef49dd71ff
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/website/static/src/js')
| -rw-r--r-- | addons/website/static/src/js/editor/snippets.options.js | 2 |
1 files changed, 1 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 e0b003c3ca0..d44bf8b74f8 100644 --- a/addons/website/static/src/js/editor/snippets.options.js +++ b/addons/website/static/src/js/editor/snippets.options.js @@ -1275,7 +1275,7 @@ options.registry.CarouselItem = options.Class.extend({ const $items = this.$carousel.find('.carousel-item'); this.$controls.removeClass('d-none'); this.$indicators.append($('<li>', { - 'data-target': '#' + this.$target.attr('id'), + 'data-target': '#' + this.$carousel.attr('id'), 'data-slide-to': $items.length, })); this.$indicators.append(' '); |
