X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/3ac9cb26acd9b7c5ba421dac123ba8f75b782bd2..47f8090f9e8c6e91ae95578ca43664b6b18fe795:/wolnelektury/static/js/jquery.countdown.js diff --git a/wolnelektury/static/js/jquery.countdown.js b/wolnelektury/static/js/jquery.countdown.js index 5375ce815..11d550612 100644 --- a/wolnelektury/static/js/jquery.countdown.js +++ b/wolnelektury/static/js/jquery.countdown.js @@ -6,7 +6,7 @@ Please attribute the author if you use it. */ /* Modified by Radek Czajka, Fundacja Nowoczesna Polska (radoslaw.czajka(at)nowoczesnapolska.org.pl) */ - +w /* Display a countdown timer. Attach it with options like: $('div selector').countdown( @@ -471,7 +471,10 @@ $.extend(Countdown.prototype, { var timeSeparator = this._get(inst, 'timeSeparator'); var description = this._get(inst, 'description') || ''; var showCompact = function(period) { - var labelsNum = $.countdown._get(inst, 'compactLabels' + periods[period]); + var which = $.countdown._get(inst, 'which'); + if (which) { + var labelsNum = $.countdown._get(inst, 'compactLabels' + which(periods[period])); + } return (show[period] ? periods[period] + (labelsNum ? labelsNum[period] : labels[period]) + ' ' : ''); };