Bugzilla – Attachment 50604 Details for
Bug 16281
Remove the use of "onclick" from Reports module
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PASSED QA] Bug 16281: [Follow-up] Remove the use of "onclick" from Reports module
PASSED-QA-Bug-16281-Follow-up-Remove-the-use-of-on.patch (text/plain), 1.72 KB, created by
Katrin Fischer
on 2016-04-24 23:26:57 UTC
(
hide
)
Description:
[PASSED QA] Bug 16281: [Follow-up] Remove the use of "onclick" from Reports module
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2016-04-24 23:26:57 UTC
Size:
1.72 KB
patch
obsolete
>From 10861b1a57f980221d44db9a2bb3e6b654671722 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Fri, 22 Apr 2016 09:31:10 -0400 >Subject: [PATCH] [PASSED QA] Bug 16281: [Follow-up] Remove the use of > "onclick" from Reports module > >This minor follow-up adds a dummy href attribute to the "Return to the >previous page" link so that the link behaves like a link. A >"preventDefault()" is added to the goback() function to keep the "#" >link from triggering a page jump. > >To test, apply the patch, create a report with an SQL error and run >it. Confirm that the 'Return to previous page' link works as expected. > >Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com> >Works as advertised > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > .../intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt >index 0ff2e8b..37f05ab 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt >@@ -68,7 +68,8 @@ function load_group_subgroups () { > > $(document).ready(function(){ > >-$(".goback").on("click",function(){ >+$(".goback").on("click",function(e){ >+ e.preventDefault(); > window.history.back(); > }); > >@@ -1017,7 +1018,7 @@ Sub report:<select name="subreport"> > [% ELSE %] > [% END %] > <div id="onerror_actions"> >- <a class="button goback">Return to previous page</a> >+ <a href="#" class="button goback">Return to previous page</a> > </div> > [% END %] > </div> >-- >1.9.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 16281
:
50303
|
50548
|
50585
|
50586
|
50589
|
50603
| 50604