From e5a2c205a3796944f4e0f57343b3503d57ae3d5c Mon Sep 17 00:00:00 2001 From: xhess Date: Mon, 30 Jun 2014 15:11:37 +0200 Subject: [PATCH] birthday date picker date range change birthday date range from the future to the past. see: https://github.com/owncloud/contacts/issues/520 --- js/contacts.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/contacts.js b/js/contacts.js index 2f1dda10..09375209 100644 --- a/js/contacts.js +++ b/js/contacts.js @@ -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()));