From 7d3772503c1b361b4f3f3e8380d39992730d40b3 Mon Sep 17 00:00:00 2001 From: Martin Persson Date: Tue, 12 May 2015 13:33:14 +0200 Subject: [PATCH] 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 Works as advertised Signed-off-by: Katrin Fischer Signed-off-by: Kyle M Hall --- .../intranet-tmpl/prog/en/modules/members/memberentrygen.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt index efee100992..e6468907ff 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt @@ -33,7 +33,7 @@ update_category_code( category_code ); } [% END %] - $("#dateofbirth").datepicker({ maxDate: "-1D" }); + $("#dateofbirth").datepicker({ maxDate: "-1D", yearRange: "c-120:" }); $("#entryform").validate({ rules: { email: { -- 2.39.5