From 24baed0c1aee1e4791cc84695322695b78826c94 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Sun, 22 Mar 2020 15:40:52 +0100 Subject: [PATCH] Prevent old style slideshow to be actived on load We used to only consider the delay to define if the slideshow was active or not. --- umap/static/umap/js/umap.slideshow.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umap/static/umap/js/umap.slideshow.js b/umap/static/umap/js/umap.slideshow.js index 35d158dd..e9d42cd4 100644 --- a/umap/static/umap/js/umap.slideshow.js +++ b/umap/static/umap/js/umap.slideshow.js @@ -90,7 +90,7 @@ L.U.Slideshow = L.Class.extend({ play: function () { if (this._id) return; - if (this.map.editEnabled) return; + if (this.map.editEnabled || !this.map.options.slideshow.active) return; L.DomUtil.addClass(document.body, L.U.Slideshow.CLASSNAME); this._id = window.setInterval(L.bind(this.loop, this), this.options.delay); this.resetSpinners();