From abb159309152fb507215b0361d2c9b29d200e97b Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 27 Nov 2018 19:25:09 +0000 Subject: [PATCH] Bug 21399: Sort patron fines in OPAC by date descending as a default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch modifies the DataTables configuration of the logged-in user's "Fines and charges" table in the OPAC so that the table is sorted by date, descending. To test, apply the patch and log in to the OPAC as a user with multiple fines. Go to the "your fines" page and confirm that the table is sorted by default on the first column with the newest entries first. Signed-off-by: Nazlı Çetin --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-account.tt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-account.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-account.tt index 205921dee11..23229a04853 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-account.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-account.tt @@ -193,7 +193,8 @@ $( document ).ready(function() { $("#finestable").dataTable($.extend(true, {}, dataTablesDefaults, { "columnDefs": [ { "type": "title-string", "targets" : [ "title-string" ] } - ] + ], + "order": [[ 0, "desc" ]] } )); $(".paypal").on("click", function() { -- 2.11.0