Bug 19338: Fix sorting by dates in opac-account.tt
To test: Find an account with lots of fines/payments load up the borrower's account in the OPAC note that the sort on the dates sorts by day, and not by date. apply this patch reload the page, note that the sort on the dates is now correct. Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Alex Arnaud <alex.arnaud@biblibre.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
parent
0693c4be77
commit
a0072fa491
|
|
@ -71,7 +71,7 @@
|
|||
<thead>
|
||||
<tr>
|
||||
[% IF ENABLE_OPAC_PAYMENTS %]<th> </th>[% END %]
|
||||
<th>Date</th>
|
||||
<th class="title-string">Date</th>
|
||||
<th>Description</th>
|
||||
<th>Fine amount</th>
|
||||
<th>Amount outstanding</th>
|
||||
|
|
@ -102,7 +102,7 @@
|
|||
[% END %]
|
||||
</td>
|
||||
[% END %]
|
||||
<td>[% ACCOUNT_LINE.date | $KohaDates %]</td>
|
||||
<td><span title="[% ACCOUNT_LINE.date %]">[% ACCOUNT_LINE.date | $KohaDates %]</span></td>
|
||||
<td>
|
||||
[% SWITCH ACCOUNT_LINE.accounttype %]
|
||||
[% CASE 'Pay' %]Payment, thanks
|
||||
|
|
@ -186,7 +186,11 @@
|
|||
<script type="text/javascript">
|
||||
$( document ).ready(function() {
|
||||
|
||||
$("#finestable").dataTable($.extend(true, {}, dataTablesDefaults ));
|
||||
$("#finestable").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"aoColumnDefs": [
|
||||
{ "sType": "title-string", "aTargets" : [ "title-string" ] }
|
||||
]
|
||||
} ));
|
||||
|
||||
$(".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');
|
||||
|
|
|
|||
Loading…
Reference in New Issue