diff --git a/pikaday.js b/pikaday.js index ddea352b..92233455 100644 --- a/pikaday.js +++ b/pikaday.js @@ -218,6 +218,9 @@ // Additional text to append to the year in the calendar title yearSuffix: '', + // Visual offset to support different types of calendars + yearOffset: 0, + // Render the month after year in the calendar title showMonthAfterYear: false, @@ -342,10 +345,10 @@ for (arr = []; i < j && i <= opts.maxYear; i++) { if (i >= opts.minYear) { - arr.push(''); + arr.push(''); } } - yearHtml = '
' + year + opts.yearSuffix + '
'; + yearHtml = '
' + (year + opts.yearOffset) + opts.yearSuffix + '
'; if (opts.showMonthAfterYear) { html += yearHtml + monthHtml;