From cc1de8228182b965251d33f57a46b1bf6cf2621f Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Wed, 2 Aug 2017 10:35:49 +0200 Subject: [PATCH] Bug 19021 - inventory column not sortable In inventory result page, items are shown in a JS DataTable. A column is not sortable for no reason. This patch removes code that sets column not sortable, maybe some changes in table made it obsolete. Test plan : - perform inventory - look at result table => Without patch second column is not sortable => With patch all columns are sortable --- koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt index 6fcbff8..a8cc5b2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt @@ -32,11 +32,6 @@ function checkForm() { $(document).ready(function(){ inventorydt = $('#inventoryt').dataTable($.extend(true, {}, dataTablesDefaults, { 'sPaginationType': 'full_numbers', - [% IF compareinv2barcd %] - "aoColumnDefs": [ { "bSortable": false, "aTargets": [ 1 ] } ], - [% ELSE %] - "aoColumnDefs": [ { "bSortable": false, "aTargets": [ 0 ] } ], - [% END %] 'fnDrawCallback': function() { //bind the click handler script to the newly created elements held in the table $('.openWin').bind('click',function(e){ -- 2.7.4