From: Alexander Ebert Date: Mon, 26 Sep 2016 16:05:37 +0000 (+0200) Subject: Changed date range for birthday input X-Git-Tag: 3.0.0_Beta_2~114 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6a18819fc0f05ec3ae6d242c01e1e5578126e6f8;p=GitHub%2FWoltLab%2FWCF.git Changed date range for birthday input --- 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);