Increased maximum age from 100 to 120
authorAlexander Ebert <ebert@woltlab.com>
Sat, 29 Oct 2016 20:18:43 +0000 (22:18 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sat, 29 Oct 2016 20:18:50 +0000 (22:18 +0200)
wcfsetup/install/files/js/WoltLabSuite/Core/Date/Picker.js

index 79a2835b6f80422ca645ee3ac3baee942e344627..a2cd93ea66a01c296667ecda2627c7ad78794ecd 100644 (file)
@@ -75,7 +75,7 @@ define(['DateUtil', 'Language', 'ObjectMap', 'Dom/ChangeListener', 'Ui/Alignment
                                
                                // handle birthday input
                                if (element.classList.contains('birthday')) {
-                                       elData(element, 'min-date', '100');
+                                       elData(element, 'min-date', '120');
                                        
                                        // do not use 'now' here, all though it makes sense, it causes bad UX 
                                        elData(element, 'max-date', new Date().getFullYear() + '-12-31');