From f343c5c8a85b9d7e8e327bcbb9ec1bd87b9b91c1 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Tue, 4 Jun 2024 14:35:17 +0000 Subject: [PATCH] Bug 37027: Remove unnecessary dataTable controls from SCO tables To test: 1. Have a patron with some checkouts, holds, and charges that can login into the SCO module. 2. Notice the dataTable controls for searching the table, copying the table, exporting as CSV, or printing. 3. APPLY PATCH 4. Try step 2 again, this time the only dataTable control should be the search filter. Signed-off-by: Sam Lau Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer (cherry picked from commit 67f18ea834ca1fd99fe936013df6dccfa01f84de) Signed-off-by: Lucas Gass (cherry picked from commit 24f3583d04f588717e8f8e996b6decf9e9a8b444) Signed-off-by: Fridolin Somers --- koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt index 77aaf36b84..6b98e64b03 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt @@ -563,7 +563,7 @@ var thIndex = $(this).find("th.psort").index(); $(this).dataTable($.extend(true, {}, dataTablesDefaults, { "sorting" : [[ thIndex, 'asc' ]], - "dom": '<"top"<"table_entries"><"table_controls"fB>>t', + "dom": '<"top"<"table_entries"><"table_controls"f>>t<"clear">', "columnDefs": [ { "targets": [ "nosort" ],"sortable": false,"searchable": false }, { "targets": [ "noshow" ], "visible": false, "searchable": false },