Bugzilla – Attachment 69773 Details for
Bug 19627
Move patron clubs templates JS to the footer
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19627: Follow-up: Include tools-menu.js on required templates
Bug-19627-Follow-up-Include-tools-menujs-on-requir.patch (text/plain), 3.16 KB, created by
Josef Moravec
on 2017-12-13 11:02:33 UTC
(
hide
)
Description:
Bug 19627: Follow-up: Include tools-menu.js on required templates
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2017-12-13 11:02:33 UTC
Size:
3.16 KB
patch
obsolete
>From 666326c583943b24bcb4446a3d6beec430c474f9 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Thu, 7 Dec 2017 13:25:11 +0000 >Subject: [PATCH] Bug 19627: Follow-up: Include tools-menu.js on required > templates > >This follow-up adds tools-menu.js to the two patron clubs templates >which include the tools sidebar menu. > >The patch also modifies tools-menu.js so that the correct sidebar link >is highlighted when editing or viewing club enrollments. > >To test, apply the patch and view the patron clubs main page and the >patron clubs enrollments page. The sidebar menu should have the correct >link highlighted in both cases. > >Signed-off-by: Claire Gravely <claire.gravely@bsz-bw.de> > >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/clubs/club-enrollments.tt | 1 + > koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs.tt | 2 +- > koha-tmpl/intranet-tmpl/prog/js/tools-menu.js | 2 ++ > 3 files changed, 4 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/club-enrollments.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/club-enrollments.tt >index daf07d0..dfca97a 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/club-enrollments.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/club-enrollments.tt >@@ -51,6 +51,7 @@ > > [% MACRO jsinclude BLOCK %] > [% INCLUDE 'datatables.inc' %] >+ <script type="text/javascript" src="[% interface %]/[% theme %]/js/tools-menu.js"></script> > <script type="text/javascript"> > $(document).ready(function() { > eTable = $('#enrollments-table').dataTable($.extend(true, {}, dataTablesDefaults, { >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs.tt >index 318d821..e548221 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs.tt >@@ -221,7 +221,7 @@ > > [% MACRO jsinclude BLOCK %] > [% INCLUDE 'datatables.inc' %] >- >+ <script type="text/javascript" src="[% interface %]/[% theme %]/js/tools-menu.js"></script> > <script type="text/javascript"> > $(document).ready(function() { > tTable = $('#club-templates-table').dataTable($.extend(true, {}, dataTablesDefaults, { >diff --git a/koha-tmpl/intranet-tmpl/prog/js/tools-menu.js b/koha-tmpl/intranet-tmpl/prog/js/tools-menu.js >index fe167a0..9751f76 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/tools-menu.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/tools-menu.js >@@ -4,6 +4,8 @@ > $('#navmenulist a[href$="/cgi-bin/koha/labels/label-home.pl"]').css('font-weight','bold'); > } else if (path.indexOf("patroncards") >= 0 ) { > $('#navmenulist a[href$="/cgi-bin/koha/patroncards/home.pl"]').css('font-weight','bold'); >+ } else if (path.indexOf("clubs") >= 0 ) { >+ $('#navmenulist a[href$="/cgi-bin/koha/clubs/clubs.pl"]').css('font-weight','bold'); > } else if (path.indexOf("patron_lists") >= 0 ) { > $('#navmenulist a[href$="/cgi-bin/koha/patron_lists/lists.pl"]').css('font-weight','bold'); > } else if (path.indexOf("rotating_collections") >= 0 ){ >-- >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 19627
:
69160
|
69162
|
69608
|
69630
|
69631
|
69772
| 69773