From 13ddc3ca7eb02c27325cda14c49844e2eea677f0 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 10 Feb 2014 12:26:34 -0500 Subject: [PATCH] Bug 11734 - Use new DataTables include in batch modification templates Bug 10649 introduced a new include file for adding DataTables-related JavaScript assets. This patch adds use of this include file to the batch modification and batch deletion pages. Minor text changes: Corrected capitalization. Apply the patch and test the following: - On batch modification and batch deletion, submit multiple barcodes or item numbers. On the results page the title column has been configured to use the "anti-the" filter to exclude articles from sorting. Sorting on all columns should work correctly. Signed-off-by: Kyle M Hall --- .../intranet-tmpl/prog/en/js/pages/batchMod.js | 3 ++- .../prog/en/modules/tools/batchMod-del.tt | 10 ++++------ .../prog/en/modules/tools/batchMod-edit.tt | 9 +++------ 3 files changed, 9 insertions(+), 13 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/pages/batchMod.js b/koha-tmpl/intranet-tmpl/prog/en/js/pages/batchMod.js index 38f971e..19abef3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/js/pages/batchMod.js +++ b/koha-tmpl/intranet-tmpl/prog/en/js/pages/batchMod.js @@ -100,7 +100,8 @@ function hideAllColumns(){ $("#itemst").dataTable($.extend(true, {}, dataTablesDefaults, { "sDom": 't', "aoColumnDefs": [ - { "aTargets": [ 0 ], "bSortable": false, "bSearchable": false } + { "aTargets": [ 0 ], "bSortable": false, "bSearchable": false }, + { "sType": "anti-the", "aTargets" : [ "anti-the" ] } ], "bPaginate": false, })); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt index f93509a..9cd4d33 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt @@ -3,10 +3,8 @@ [% INCLUDE 'doc-head-close.inc' %] +[% INCLUDE 'datatables.inc' %] - -[% INCLUDE 'datatables-strings.inc' %] - +[% INCLUDE 'datatables.inc' %] - -[% INCLUDE 'datatables-strings.inc' %] - -