1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-18 07:52:21 +01:00

birthday date picker date range

change birthday date range from the future to the past.
see: https://github.com/owncloud/contacts/issues/520
This commit is contained in:
xhess 2014-06-30 15:11:37 +02:00
parent 0e0fb52690
commit e5a2c205a3

View File

@ -1332,7 +1332,9 @@ OC.Contacts = OC.Contacts || {};
$bdayinput.datepicker({
dateFormat : datepickerFormatDate,
changeMonth: true,
changeYear: true
changeYear: true,
minDate : new Date(1900,1,1),
maxDate : new Date()
});
$bdayinput.attr('placeholder', $.datepicker.formatDate(datepickerFormatDate, new Date()));