From 09b37fb63fc6214a74adc36109fb6212df6e11a0 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 29 Jan 2020 16:11:46 +0000 Subject: [PATCH] Revert "Bug 23493: (follow-up) Disable rowGroup on due date sort" This reverts commit 644ed8860aea4b1297d978700c2966a93e10628a. --- koha-tmpl/intranet-tmpl/prog/js/checkouts.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js index 07d7553847..ff3b900ad1 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js +++ b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js @@ -260,7 +260,7 @@ $(document).ready(function() { "bVisible": false, }, { - "iDataSort": 2, // Sort on hidden unformatted date due column + "aDataSort": [1,2], // Sort on hidden unformatted date due column "mDataProp": function( oObj ) { var due = oObj.date_due_formatted; @@ -644,16 +644,6 @@ $(document).ready(function() { collision: "none" }); } - - // Disable rowGroup when sorting on due date - $("#issues-table").on( 'order.dt', function(){ - var order = issuesTable.api().order(); - if ( order[0][0] === 3 ) { - issuesTable.api().rowGroup().disable(); - } else { - issuesTable.api().rowGroup().enable(); - } - }); } // Don't load relatives' issues table unless it is clicked on -- 2.39.5