Bugzilla – Attachment 55289 Details for
Bug 17222
Remove use of onclick from OPAC member entry page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17222: Remove use of onclick from OPAC member entry page
Bug-17222-Remove-use-of-onclick-from-OPAC-member-e.patch (text/plain), 1.93 KB, created by
Jonathan Druart
on 2016-09-07 10:40:37 UTC
(
hide
)
Description:
Bug 17222: Remove use of onclick from OPAC member entry page
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-09-07 10:40:37 UTC
Size:
1.93 KB
patch
obsolete
>From 8e757a76d34742ffc8a64b64648cdc5d34b907fd Mon Sep 17 00:00:00 2001 >From: Aleisha Amohia <aleishaamohia@hotmail.com> >Date: Mon, 29 Aug 2016 23:22:11 +0000 >Subject: [PATCH] Bug 17222: Remove use of onclick from OPAC member entry page > >There is only one instance on onclick here, and that is the clear date >function. > >To test, make sure clicking 'Clear date' next to Date of Birth works the >same before and after the patch. > >Sponsored-by: Catalyst IT > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt >index 609ea45..6335f90 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt >@@ -270,7 +270,7 @@ > > [% UNLESS action == 'edit' && !OPACPatronDetails %] > [% UNLESS ( mandatory.defined('dateofbirth') ) %] >- <a href="#" style="font-size:85%;text-decoration:none;" onclick="document.getElementById('borrower_dateofbirth').value='';return false;">Clear date</a> >+ <a href="#" style="font-size:85%;text-decoration:none;" class="cleardate">Clear date</a> > [% END %] > [% END %] > >@@ -988,6 +988,11 @@ > }); > [% END %] > }); >+ >+ $(".cleardate").on("click", function(){ >+ document.getElementById('borrower_dateofbirth').value=''; >+ return false; >+ }); > //]]> > </script> > [% INCLUDE 'calendar.inc' %] >-- >2.8.1
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 17222
:
54999
|
55036
|
55288
| 55289 |
55290