summaryrefslogtreecommitdiff
path: root/addons/website/static/src
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2019-05-17 09:59:53 +0200
committerChristophe Simonis <chs@odoo.com>2019-05-17 10:00:11 +0200
commit5f17daae4069fca9d65d35c74cac548c48a17d59 (patch)
treef863d478169e9ed339f34385e5b2c3d2820207c9 /addons/website/static/src
parent587357432e13bf80f341ca33cc798b633b2208c5 (diff)
parentdaf9763e6ecbaadb8f92b14fd2fadc310c54c690 (diff)
[MERGE] forward report branch 11.0 up to daf9763e6ec
Diffstat (limited to 'addons/website/static/src')
-rw-r--r--addons/website/static/src/js/content/snippets.animation.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/website/static/src/js/content/snippets.animation.js b/addons/website/static/src/js/content/snippets.animation.js
index e28e1e0d14f..c9e28c31d6a 100644
--- a/addons/website/static/src/js/content/snippets.animation.js
+++ b/addons/website/static/src/js/content/snippets.animation.js
@@ -825,6 +825,10 @@ registry.gallerySlider = Animation.extend({
destroy: function () {
this._super.apply(this, arguments);
+ if (!this.$indicator) {
+ return;
+ }
+
this.$prev.prependTo(this.$indicator);
this.$next.appendTo(this.$indicator);
this.$carousel.off('.gallery_slider');