Bugzilla – Attachment 69608 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.24 KB, created by
Owen Leonard
on 2017-12-07 13:33:35 UTC
(
hide
)
Description:
Bug 19627: Follow-up: Include tools-menu.js on required templates
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2017-12-07 13:33:35 UTC
Size:
3.24 KB
patch
obsolete
>From 5d15615ff2aae4530f4c314defa3b402162db60f 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. >--- > 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 | 4 +++- > 3 files changed, 5 insertions(+), 2 deletions(-) > >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 6a73363..cd10186 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/tools-menu.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/tools-menu.js >@@ -3,7 +3,9 @@ > if (path.indexOf("labels") >= 0 && path.indexOf("spine") < 0 ) { > $('#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'); >+ $('#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+location.search).indexOf("batchMod.pl?del=1") >= 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