Bugzilla – Attachment 45379 Details for
Bug 12342
Patron registration datepicker dropdown shows only 10 years
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12342: Patron registration datepicker dropdown shows only 10 years
Bug-12342-Patron-registration-datepicker-dropdown-.patch (text/plain), 1.82 KB, created by
Martin Persson
on 2015-12-03 16:40:47 UTC
(
hide
)
Description:
Bug 12342: Patron registration datepicker dropdown shows only 10 years
Filename:
MIME Type:
Creator:
Martin Persson
Created:
2015-12-03 16:40:47 UTC
Size:
1.82 KB
patch
obsolete
>From 38abaf31ef7359ac09d8cbc6281cdc8a194d4080 Mon Sep 17 00:00:00 2001 >From: Martin Persson <xarragon@gmail.com> >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 100 years from the current date. >Default value selected is current date minus 15 years; this assumes that >15 years is a common age for new patrons. > >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 default selected date will be current date minus one. >- 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 default selected date should be current year minus 15. >- The year selection drop-down should show current year minus 100. > >Signed-off-by: Eivin Giske Skaaren <eskaaren@yahoo.no> >--- > koha-tmpl/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 a3b7a9d..0a7da4d 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:", defaultDate: "-15y" }); > $("#entryform").validate({ > rules: { > email: { >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 12342
:
39089
|
39098
|
45379
|
45380
|
45381
|
45389
|
45433