From 755c0fe1b7f53932dd968524c2bbbffc80e2a523 Mon Sep 17 00:00:00 2001 From: David Cook Date: Mon, 28 Jul 2025 04:03:13 +0000 Subject: [PATCH] Bug 40523: Remove unused variable from datatables.js This change removes an unused variable from datatables.js Test plan: 0. Apply the patch 1. Go to http://localhost:8080/cgi-bin/koha/opac-main.pl 2. Search for this payload: "abc123" 3. Click on "Search history" in the top right corner of the screen 4. Click ""CSV", "Copy", and "Print" on the "Current session" toolbar 5. Note that all the buttons work as expected Signed-off-by: Owen Leonard Signed-off-by: Jonathan Druart Signed-off-by: Lucas Gass (cherry picked from commit b572ae29eb452fcde50432c86410eaa78cbffe7d) Signed-off-by: Paul Derscheid --- .../opac-tmpl/bootstrap/js/datatables.js | 31 ------------------- 1 file changed, 31 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/js/datatables.js b/koha-tmpl/opac-tmpl/bootstrap/js/datatables.js index 922f832090..d71fd6dfbd 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/js/datatables.js +++ b/koha-tmpl/opac-tmpl/bootstrap/js/datatables.js @@ -428,37 +428,6 @@ function _dt_buttons(params) { }, }; - var export_buttons = [ - { - extend: "excelHtml5", - exportOptions: { - columns: exportColumns, - format: export_format, - }, - }, - { - extend: "csvHtml5", - exportOptions: { - columns: exportColumns, - format: export_format, - }, - }, - { - extend: "copyHtml5", - exportOptions: { - columns: exportColumns, - format: export_format, - }, - }, - { - extend: "print", - exportOptions: { - columns: exportColumns, - format: export_format, - }, - }, - ]; - let buttons = [ { fade: 100,