X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/dea27f4e683e78d64d7841489ac1059e6a7d98c9..073bc5dd763d0c181198af92fd5a2d8201d74679:/wolnelektury/templates/pdcounter/pd_counter.html?ds=inline

diff --git a/wolnelektury/templates/pdcounter/pd_counter.html b/wolnelektury/templates/pdcounter/pd_counter.html
index af744aecf..fd157ad55 100644
--- a/wolnelektury/templates/pdcounter/pd_counter.html
+++ b/wolnelektury/templates/pdcounter/pd_counter.html
@@ -5,6 +5,8 @@
 {% else %}
     $.countdown.setDefaults($.countdown.regional['']);
 {% endif %}
-d = new Date({{ pd_counter }}, 1, 1);
-$('#countdown').countdown({until: d, format: 'ydHMS', serverSync: serverTime});
+d = new Date({{ pd_counter }}, 0, 1);
+function re() {location.reload()};
+$('#countdown').countdown({until: d, format: 'ydHMS', serverSync: serverTime,
+onExpiry: re, alwaysExpire: true});
 </script>