diff --git a/loleaflet/src/map/handler/Map.Feedback.js b/loleaflet/src/map/handler/Map.Feedback.js index b80b3f0a1..33fea1dfd 100644 --- a/loleaflet/src/map/handler/Map.Feedback.js +++ b/loleaflet/src/map/handler/Map.Feedback.js @@ -26,10 +26,14 @@ L.Map.Feedback = L.Handler.extend({ onFeedback: function () { if (window.localStorage.getItem('WSDFeedbackEnabled')) { - if (this._iframeDialog && this._iframeDialog.hasLoaded()) - this._iframeDialog.remove(); + if (this._map.shouldWelcome()) + setTimeout(L.bind(this.onFeedback, this), 3000); + else { + if (this._iframeDialog && this._iframeDialog.hasLoaded()) + this._iframeDialog.remove(); - this._iframeDialog = L.iframeDialog(window.feebackLocation); + this._iframeDialog = L.iframeDialog(window.feebackLocation); + } } },