diff --git a/src/pretix/base/templates/pretixbase/cachedfiles/pending.html b/src/pretix/base/templates/pretixbase/cachedfiles/pending.html index 8c4254c442..20ad3d8cc7 100644 --- a/src/pretix/base/templates/pretixbase/cachedfiles/pending.html +++ b/src/pretix/base/templates/pretixbase/cachedfiles/pending.html @@ -20,7 +20,7 @@

{% trans "We are preparing your file for download…" %}

- {% trans "If this takes longer than a few minutes, please contact us." %} + {% trans "If this takes longer than a few minutes, please refresh this page or contact us." %}

diff --git a/src/static/pretixbase/js/reloadpending.js b/src/static/pretixbase/js/reloadpending.js index 788f24a361..a8d2bea96b 100644 --- a/src/static/pretixbase/js/reloadpending.js +++ b/src/static/pretixbase/js/reloadpending.js @@ -1,6 +1,7 @@ -window.setInterval(function () { +var intId = window.setInterval(function () { $.get(location.href + '?ajax=1', function (data, status) { if (data === "1") { + window.clearInterval(intId); location.reload(); } });