Bug 14405: Add datatables to fines table in OPAC
To test: 1) Apply patch 2) Go to OPAC -> Your account 3) Confirm you can now sort on all columns Sponsored-by: Catalyst IT NOTE: NICE! Signed-off-by: Mark Tompsett <mtompset@hotmail.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
parent
056b16ead7
commit
c98acf8773
1 changed files with 9 additions and 3 deletions
|
@ -3,11 +3,12 @@
|
|||
[% USE Price %]
|
||||
[% SET ENABLE_OPAC_PAYMENTS = Koha.Preference('EnablePayPalOpacPayments') %]
|
||||
[% SET DISPLAY_PAYMENT_BLOCK = 0 %]
|
||||
|
||||
[% INCLUDE 'doc-head-open.inc' %]
|
||||
<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Your fines and charges</title>
|
||||
[% INCLUDE 'doc-head-close.inc' %]
|
||||
[% BLOCK cssinclude %][% END %]
|
||||
[% BLOCK cssinclude %]
|
||||
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
|
||||
[% END %]
|
||||
</head>
|
||||
|
||||
[% INCLUDE 'bodytag.inc' bodyid='opac-account' bodyclass='scrollto' %]
|
||||
|
@ -66,7 +67,7 @@
|
|||
|
||||
[% IF ( ACCOUNT_LINES ) %]
|
||||
<form method="post" action="opac-account-pay.pl" class="form-horizontal">
|
||||
<table class="table table-bordered table-striped">
|
||||
<table class="table table-bordered table-striped" id="finestable">
|
||||
<thead>
|
||||
<tr>
|
||||
[% IF ENABLE_OPAC_PAYMENTS %]<th> </th>[% END %]
|
||||
|
@ -176,9 +177,14 @@
|
|||
|
||||
[% INCLUDE 'opac-bottom.inc' %]
|
||||
[% BLOCK jsinclude %]
|
||||
[% INCLUDE 'datatables.inc' %]
|
||||
<script type="text/javascript">
|
||||
$( document ).ready(function() {
|
||||
|
||||
$("#finestable").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"sPaginationType": "four_button"
|
||||
}));
|
||||
|
||||
$(".paypal").on("click", function() {
|
||||
window.open('https://www.paypal.com/webapps/mpp/paypal-popup','WIPaypal','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=1060, height=700');
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue