bug 9916: (follow-up) restore default sort order for self-check loan list
authorGalen Charlton <gmc@esilibrary.com>
Mon, 19 Aug 2013 14:52:06 +0000 (14:52 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 19 Aug 2013 14:54:42 +0000 (14:54 +0000)
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 <gmc@esilibrary.com>
koha-tmpl/opac-tmpl/prog/en/modules/sco/sco-main.tt

index 68c2500..3803368 100644 (file)
@@ -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" ] },