Bugzilla – Attachment 58650 Details for
Bug 17859
Move JavaScript to the footer on about and auth pages
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 17859 - Move JavaScript to the footer on about and auth pages
SIGNED-OFF-Bug-17859---Move-JavaScript-to-the-foot.patch (text/plain), 2.86 KB, created by
Josef Moravec
on 2017-01-07 09:34:05 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 17859 - Move JavaScript to the footer on about and auth pages
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2017-01-07 09:34:05 UTC
Size:
2.86 KB
patch
obsolete
>From 09de289c9770c2727093ff81ee4c76a5a14a88a7 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Fri, 6 Jan 2017 16:12:25 +0000 >Subject: [PATCH] [SIGNED-OFF] Bug 17859 - Move JavaScript to the footer on > about and auth pages > >This patch modifies the about page and the login page templates so that >JavaScript is included in the footer instead of the header. > >To test, apply the patch and test each page to confirm that >JavaScript-based interactions are unaffected: > >- On the About page tabs and header menu dropdowns should work correctly > >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/about.tt | 18 ++++++++++-------- > koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt | 19 +++++++++++-------- > 2 files changed, 21 insertions(+), 16 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt >index ddba5fd..492aee4 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt >@@ -1,14 +1,7 @@ >+[% SET footerjs = 1 %] > [% INCLUDE 'doc-head-open.inc' %] > <title>Koha › About Koha</title> > [% INCLUDE 'doc-head-close.inc' %] >-<script type="text/javascript"> >-//<![CDATA[ >- >- $(document).ready(function() { >- $('#abouttabs').tabs(); >- }); >-//]]> >-</script> > </head> > <body id="about_about" class="about"> > [% INCLUDE 'header.inc' %] >@@ -896,4 +889,13 @@ > > </div> > </div></div></div> >+ >+[% MACRO jsinclude BLOCK %] >+ <script type="text/javascript"> >+ $(document).ready(function() { >+ $('#abouttabs').tabs(); >+ }); >+ </script> >+[% END %] >+<!-- the main div is closed in intranet-bottom.inc --> > [% INCLUDE 'intranet-bottom.inc' %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt >index 8d0e58f..82743dd 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt >@@ -1,4 +1,5 @@ > [% USE Branches %] >+[% SET footerjs = 1 %] > [% INCLUDE 'doc-head-open.inc' %] > <title>Koha › > [% IF ( nopermission ) %]Access denied[% END %] >@@ -103,12 +104,14 @@ > </div> > </div> > >-<script> >-$(document).ready( function() { >- if ( document.location.hash ) { >- $( '#loginform' ).append( '<input name="auth_forwarded_hash" type="hidden" value="' + document.location.hash + '"/>' ); >- } >-} ); >-</script> >- >+[% MACRO jsinclude BLOCK %] >+ <script type="text/javascript"> >+ $(document).ready( function() { >+ if ( document.location.hash ) { >+ $( '#loginform' ).append( '<input name="auth_forwarded_hash" type="hidden" value="' + document.location.hash + '"/>' ); >+ } >+ }); >+ </script> >+[% END %] >+<!-- the main div is closed in intranet-bottom.inc --> > [% INCLUDE 'intranet-bottom.inc' %] >-- >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 17859
:
58649
|
58650
|
58728