Bugzilla – Attachment 184700 Details for
Bug 40523
Remove unused export_buttons variable from koha-tmpl/opac-tmpl/bootstrap/js/datatables.js
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40523: Remove unused variable from datatables.js
Bug-40523-Remove-unused-variable-from-datatablesjs.patch (text/plain), 1.82 KB, created by
David Cook
on 2025-07-28 04:06:25 UTC
(
hide
)
Description:
Bug 40523: Remove unused variable from datatables.js
Filename:
MIME Type:
Creator:
David Cook
Created:
2025-07-28 04:06:25 UTC
Size:
1.82 KB
patch
obsolete
>From e47bad3ba72392e254aa5d34f3d1a3b8ca48a844 Mon Sep 17 00:00:00 2001 >From: David Cook <dcook@prosentient.com.au> >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 >--- > .../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 114dfcd22a..05bb9b31ba 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, >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 40523
:
184700
|
184795