pdcounter fix, librarian bump
[wolnelektury.git] / wolnelektury / templates / pdcounter / pd_counter.html
index af744ae..fd157ad 100644 (file)
@@ -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>