Bugzilla – Attachment 100217 Details for
Bug 24803
Clicking "Log in to your account" throws fatal Javascript error
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24803: Remove JS error when clicking "Log in to your account"
Bug-24803-Remove-JS-error-when-clicking-Log-in-to-.patch (text/plain), 2.21 KB, created by
Jonathan Druart
on 2020-03-06 08:54:37 UTC
(
hide
)
Description:
Bug 24803: Remove JS error when clicking "Log in to your account"
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-03-06 08:54:37 UTC
Size:
2.21 KB
patch
obsolete
>From 4ccdac035fde938b4730942e2034ef965e5ad0dd Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Wed, 4 Mar 2020 19:47:26 +0000 >Subject: [PATCH] Bug 24803: Remove JS error when clicking "Log in to your > account" > >This patch removes the "data-toggle" attribute from the login link in >order to avoid a JavaScript error. Since we have a custom click handler >to trigger the modal we don't need Bootstrap's "automatic" modal >handling. > >Test plan: >1. Apply patch >2. Open F12 dev tools >3. Click "Log in to your account" on OPAC >4. Observe no Javascript errors in console > >Signed-off-by: David Cook <dcook@prosentient.com.au> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc >index a27be4d487..6be6e8b8f1 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc >@@ -102,7 +102,7 @@ > [% ELSIF ( Koha.Preference('GoogleOpenIDConnect') == 1 ) %] > <a class="login-link" href="/cgi-bin/koha/svc/auth/googleopenidconnect" role="button" data-toggle="modal"><i class="fa fa-user fa-icon-white fa-fw"></i> <span class="userlabel">Log in to your account</span></a> > [% ELSE %] >- <a href="/cgi-bin/koha/opac-user.pl" class="login-link loginModal-trigger" role="button" data-toggle="modal"><i class="fa fa-user fa-icon-white fa-fw"></i> <span class="userlabel">Log in to your account</span></a> >+ <a href="/cgi-bin/koha/opac-user.pl" class="login-link loginModal-trigger"><i class="fa fa-user fa-icon-white fa-fw"></i> <span class="userlabel">Log in to your account</span></a> > [% END %] > [% END %] > [% END %] >-- >2.20.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 24803
:
100156
|
100157
|
100159
|
100160
|
100191
|
100208
|
100209
| 100217