Bug 12342: Patron registration datepicker dropdown shows only 10 years
This patch changes the options to the date picker, allowing easy selection of dates up to 120 years from the current date. To test: - Click on 'Patrons' from the main menu, select 'New patron' - Set input focus to the 'Date of birth' input field, the date selection widget should show up. - The year selection drop-down will only show current year minus 10. - Apply the patch - Go back to the same screen, set input focus to the 'Date of birth' field. - The year selection drop-down should show current year minus 120. Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com> Works as advertised Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
parent
89a058787a
commit
7d3772503c
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@
|
||||||
update_category_code( category_code );
|
update_category_code( category_code );
|
||||||
}
|
}
|
||||||
[% END %]
|
[% END %]
|
||||||
$("#dateofbirth").datepicker({ maxDate: "-1D" });
|
$("#dateofbirth").datepicker({ maxDate: "-1D", yearRange: "c-120:" });
|
||||||
$("#entryform").validate({
|
$("#entryform").validate({
|
||||||
rules: {
|
rules: {
|
||||||
email: {
|
email: {
|
||||||
|
|
Loading…
Reference in a new issue