diff --git a/CHANGELOG.rst b/CHANGELOG.rst index d06f45d8567d1fd800d2b9d485c2d2980d00b336..fc5d823afdd0a646c8569c1b7497ac71bd228ea1 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -19,6 +19,7 @@ Fixed * Correctly update theme colours on change again * Use correct favicon as default AlekSIS favicon +* Show all years in a 200 year range around the current year in date pickers Removed ~~~~~~~ diff --git a/aleksis/core/static/js/main.js b/aleksis/core/static/js/main.js index 1d2a2fe28e3c4304e72d8abfc398f0fda3908586..119103b5ea3885f290410a42758a5f672caffdc4 100644 --- a/aleksis/core/static/js/main.js +++ b/aleksis/core/static/js/main.js @@ -19,7 +19,8 @@ function initDatePicker(sel) { // Set monday as first day of week firstDay: get_format('FIRST_DAY_OF_WEEK'), - autoClose: true + autoClose: true, + yearRange: [new Date().getFullYear() - 100, new Date().getFullYear() + 100], }); el.datepicker("setDate", $(sel).val()); return el;