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. Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com> Correction for QA: Removed contditional around footer JS (from copy-paste) because it will always be true. Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
ef92ad31bf
commit
399dcaa222
1 changed files with 8 additions and 4 deletions
|
@ -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,11 @@
|
|||
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
[% 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 %]
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in a new issue