From 6a18819fc0f05ec3ae6d242c01e1e5578126e6f8 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 26 Sep 2016 18:05:37 +0200 Subject: [PATCH] Changed date range for birthday input --- wcfsetup/install/files/js/WoltLabSuite/Core/Date/Picker.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Date/Picker.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Date/Picker.js index c9ef3b2e88..79a2835b6f 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Date/Picker.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Date/Picker.js @@ -76,7 +76,9 @@ define(['DateUtil', 'Language', 'ObjectMap', 'Dom/ChangeListener', 'Ui/Alignment // handle birthday input if (element.classList.contains('birthday')) { elData(element, 'min-date', '100'); - elData(element, 'max-date', 'now'); + + // do not use 'now' here, all though it makes sense, it causes bad UX + elData(element, 'max-date', new Date().getFullYear() + '-12-31'); } else { if (element.min) elData(element, 'min-date', element.min); -- 2.20.1