From 7630e0b5ae5d76fb8f57e0f59a702047dee79137 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Mon, 19 Aug 2013 14:52:06 +0000 Subject: [PATCH] bug 9916: (follow-up) restore default sort order for self-check loan list To test: [1] Log into web-based selfcheck. [2] Enter the barcode of a patron that has at least two loans. [3] Verify that the loan list sorts them in order of descending due date by default, with a secondary sort order of ascending title. Signed-off-by: Galen Charlton --- koha-tmpl/opac-tmpl/prog/en/modules/sco/sco-main.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/sco/sco-main.tt b/koha-tmpl/opac-tmpl/prog/en/modules/sco/sco-main.tt index 68c2500ece..380336899d 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/sco/sco-main.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/sco/sco-main.tt @@ -72,7 +72,7 @@ $(document).ready(function() { dofocus(); [% IF ( patronid ) %]sco_init();[% END %] $("#loanTable").dataTable($.extend(true, {}, dataTablesDefaults, { - "aaSorting": [[ 2, "asc" ]], + "aaSorting": [ [2, "desc"], [0, "asc"] ], "aoColumnDefs": [ { "aTargets": [ "nosort" ],"bSortable": false,"bSearchable": false }, { "sType": "anti-the", "aTargets" : [ "anti-the" ] }, -- 2.39.5