From e7616dab5c51c5a04aabc7e05dd56cf693d77333 Mon Sep 17 00:00:00 2001 From: Lloyd Meins <git@lloydmeins.de> Date: Mon, 20 Dec 2021 13:03:47 +0100 Subject: [PATCH] Show all years from 1900 to 2100 automatically --- aleksis/core/static/js/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aleksis/core/static/js/main.js b/aleksis/core/static/js/main.js index 1d2a2fe28..3446224fe 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: [1900, 2100], }); el.datepicker("setDate", $(sel).val()); return el; -- GitLab