comparison media/js/bio.js @ 77:d5eed0a91a05

#24 - Make the default date for a birthday today - 30 years. This allows you to select any month with the picker if the field is initially blank.
author Brian Neal <bgneal@gmail.com>
date Fri, 10 Jul 2009 23:56:02 +0000
parents dbd703f7d63a
children c515b7401078
comparison
equal deleted inserted replaced
76:eecbd00e092a 77:d5eed0a91a05
3 $('#id_profile_text').markItUp(mySettings); 3 $('#id_profile_text').markItUp(mySettings);
4 $('#id_signature').markItUp(mySettings); 4 $('#id_signature').markItUp(mySettings);
5 $('#id_birthday').datepicker({changeMonth: true, 5 $('#id_birthday').datepicker({changeMonth: true,
6 changeYear: true, 6 changeYear: true,
7 dateFormat: 'yy-mm-dd', 7 dateFormat: 'yy-mm-dd',
8 defaultDate: '-30y',
8 minDate: new Date(1909, 0, 1), 9 minDate: new Date(1909, 0, 1),
9 maxDate: new Date(), 10 maxDate: new Date(),
10 yearRange: '-100:+0'}); 11 yearRange: '-100:+0'});
11 }); 12 });