From c96821861be4692487278aeb23c200f593cd2494 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 25 Mar 2021 12:47:41 +0000 Subject: [PATCH] Bug 28007: (follow-up) Address missing instances This patch removes the "title-string" option from some dataTable initializations. Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart --- .../intranet-tmpl/prog/en/modules/tools/access_files.tt | 3 +-- .../intranet-tmpl/prog/en/modules/tools/modborrowers.tt | 7 +------ .../intranet-tmpl/prog/en/modules/tools/problem-reports.tt | 1 - koha-tmpl/intranet-tmpl/prog/js/pages/tags-review.js | 3 +-- 4 files changed, 3 insertions(+), 11 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/access_files.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/access_files.tt index aad8de848f..154b713771 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/access_files.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/access_files.tt @@ -78,8 +78,7 @@ $(document).ready(function() { $("#files").dataTable($.extend(true, {}, dataTablesDefaults, { "aoColumnDefs": [ - { "aTargets": [ -1 ], "asSorting" : [ "desc", "asc" ], "bSearchable": false }, - { "sType": "title-string", "aTargets" : [ "title-string" ] } + { "aTargets": [ -1 ], "asSorting" : [ "desc", "asc" ], "bSearchable": false } ], "bPaginate": false })); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt index b4bd6b1a8f..30943e522c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt @@ -352,14 +352,9 @@ [% IF borrowers %] $("#borrowerst").dataTable($.extend(true, {}, dataTablesDefaults, { "sDom": 't', - [% IF ( op == 'show_results' ) %] - "aoColumnDefs": [ - { 'sType': "title-string", 'aTargets' : [ 'title-string'] } - ], - [% ELSE %] + [% UNLESS ( op == 'show_results' ) %] "aoColumnDefs": [ { "aTargets": [ 0 ], "bSortable": false, "bSearchable": false }, - { 'sType': "title-string", 'aTargets' : [ 'title-string'] } ], [% END %] "bPaginate": false diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/problem-reports.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/problem-reports.tt index 4779f35bd8..9c58ca57b6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/problem-reports.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/problem-reports.tt @@ -149,7 +149,6 @@ "order": [[ 1, "asc" ]], "aoColumnDefs": [ { "orderable": false, "searchable": false, 'targets': [ 'NoSort' ] }, - { "type": "title-string", "targets" : [ "title-string" ] }, { "type": "anti-the", "targets": [ "anti-the" ] } ], "pagingType": "full" diff --git a/koha-tmpl/intranet-tmpl/prog/js/pages/tags-review.js b/koha-tmpl/intranet-tmpl/prog/js/pages/tags-review.js index f5ee5245d2..fb790551bd 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/pages/tags-review.js +++ b/koha-tmpl/intranet-tmpl/prog/js/pages/tags-review.js @@ -62,8 +62,7 @@ $(document).ready(function() { $("#tagst").dataTable($.extend(true, {}, dataTablesDefaults, { "aoColumnDefs": [ { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] }, - { "sType": "anti-the", "aTargets" : [ "anti-the" ] }, - { "sType": "title-string", "aTargets" : [ "title-string" ] } + { "sType": "anti-the", "aTargets" : [ "anti-the" ] } ], "aaSorting": [[ 2, "desc" ]], "sPaginationType": "full" -- 2.39.5