@@ -, +, @@ pages - Remove tablesorter plugin from batchMod.tt where it was unused. - Replace tablesorter assets with DataTables assets on batch edit and batch delete pages. - Replace tablesorter code with DataTables code in batchMod.js, which provides table sorting functionality for both batch templates. - Move position of batchMod.js script inclusion so that DataTables assets are loaded first. - Remove inline table sorting code from batch edit page since it is provided by batchMod.js - Check/Uncheck all - Hide/show columns - Table sorting on a variety of different kinds of data columns --- .../intranet-tmpl/prog/en/js/pages/batchMod.js | 11 +++++++---- .../prog/en/modules/tools/batchMod-del.tt | 7 +++++-- .../prog/en/modules/tools/batchMod-edit.tt | 8 +++++--- .../prog/en/modules/tools/batchMod.tt | 9 --------- 4 files changed, 17 insertions(+), 18 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/js/pages/batchMod.js +++ a/koha-tmpl/intranet-tmpl/prog/en/js/pages/batchMod.js @@ -97,10 +97,13 @@ function hideAllColumns(){ $(document).ready(function() { hideColumns(); - $("#itemst").tablesorter({ - widgets : ['zebra'], - headers: {0:{sorter: false}} - }); + $("#itemst").dataTable($.extend(true, {}, dataTablesDefaults, { + "sDom": 't', + "aoColumnDefs": [ + { "aTargets": [ 0 ], "bSortable": false, "bSearchable": false } + ], + "bPaginate": false + })); $("#selectallbutton").click(function(){ $("#itemst").checkCheckboxes(); return false; --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt @@ -3,7 +3,11 @@ [% INCLUDE 'doc-head-close.inc' %] - + + + +[% INCLUDE 'datatables-strings.inc' %] + - --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt @@ -4,7 +4,11 @@ - + + + +[% INCLUDE 'datatables-strings.inc' %] + - --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod.tt @@ -1,15 +1,6 @@ [% INCLUDE 'doc-head-open.inc' %] Koha › Tools › [% IF ( del ) %]Batch item deletion[% ELSE %]Batch item modification[% END %] [% INCLUDE 'doc-head-close.inc' %] - - [% INCLUDE 'header.inc' %] --