X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/aae5369e6dab510705fdfa1265cf9e095d24a97d..6280673f35e13e75e81c5b7821bd2a44a1831eab:/apps/waiter/templates/waiter/wait.html diff --git a/apps/waiter/templates/waiter/wait.html b/apps/waiter/templates/waiter/wait.html index f4dedc77a..6ef1b7751 100644 --- a/apps/waiter/templates/waiter/wait.html +++ b/apps/waiter/templates/waiter/wait.html @@ -1,6 +1,6 @@ {% extends "base.html" %} {% load i18n %} -{% load url from future %} +{% load static from staticfiles %} {% block titleextra %} {% if file_url %} @@ -39,7 +39,8 @@ {% else %} {% if waiting %} -

{% trans "Your file is being prepared, please wait." %}

+

{% trans 'Please wait' %} + {% trans "Your file is being prepared, please wait." %}

{% blocktrans with d=waiting.description %}The file you requested was: {{d}}.{% endblocktrans %}

@@ -77,8 +78,8 @@ function wait() { else setTimeout(wait, 10*1000); }, - error: function() { - setTimeout(wait, 10*1000); + error: function(xhr) { + location.reload(); } }); }