Bugzilla – Attachment 67278 Details for
Bug 19356
Move staff client cart JavaScript to the footer
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19356: Move staff client cart JavaScript to the footer
Bug-19356-Move-staff-client-cart-JavaScript-to-the.patch (text/plain), 2.26 KB, created by
Owen Leonard
on 2017-09-21 14:04:52 UTC
(
hide
)
Description:
Bug 19356: Move staff client cart JavaScript to the footer
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2017-09-21 14:04:52 UTC
Size:
2.26 KB
patch
obsolete
>From 78f7242a3d8699f36d41e5cb3807afaeed4ef716 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Mon, 9 Jan 2017 16:31:19 +0000 >Subject: [PATCH] Bug 19356: Move staff client cart JavaScript to the footer > >This patch modifies the staff client cart template so that >JavaScript is included in the footer instead of the header. > >To test, apply the patch and test the JavaScript-driven features of the >cart: All button controls, DataTables functionality. >--- > koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt | 14 ++++++++++---- > 1 file changed, 10 insertions(+), 4 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt >index 30f276c..be56b47 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt >@@ -1,3 +1,4 @@ >+[% SET footerjs = 1 %] > [% BLOCK controls %] > <p style="padding: 7px 0; border-top : 1px solid #E8E8E8;"> > <a id="CheckAll" href="#"><i class="fa fa-check"></i> Select all</a> <a id="CheckNone" href="#"><i class="fa fa-remove"></i> Clear all</a> >@@ -31,10 +32,7 @@ > @import url([% interface %]/[% theme %]/css/print.css); > </style> > [% ELSE %][% INCLUDE 'doc-head-close.inc' %] >-<script type="text/javascript" src="[% interface %]/[% theme %]/js/cart.js"></script> >-<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script> > <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" /> >-[% INCLUDE 'datatables.inc' %] > [% END %] > </head> > [% IF ( print_basket ) %]<body id="cart_basket" class="cart" onload="print();history.back();">[% ELSE %]<body id="cart_basket" class="cart">[% END %] >@@ -289,5 +287,13 @@ > > </div> > </div> >-</body> >+ [% IF ( footerjs ) %] >+ [% INCLUDE js_includes.inc %] >+ [% UNLESS ( print_basket ) %] >+ [% INCLUDE 'datatables.inc' %] >+ <script type="text/javascript" src="[% interface %]/[% theme %]/js/cart.js"></script> >+ <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script> >+ [% END %] >+ [% END %] >+ </body> > </html> >-- >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 19356
:
67278
|
67386
|
68080