Bugzilla – Attachment 174765 Details for
Bug 38476
Use anchor tag for DataTables configure button
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38476: Make DT 'Configure' button a link
Bug-38476-Make-DT-Configure-button-a-link.patch (text/plain), 1.60 KB, created by
Jonathan Druart
on 2024-11-19 10:16:53 UTC
(
hide
)
Description:
Bug 38476: Make DT 'Configure' button a link
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2024-11-19 10:16:53 UTC
Size:
1.60 KB
patch
obsolete
>From a0df0a9d596a0af9ba637a150dbc785130651c6b Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 19 Nov 2024 11:15:54 +0100 >Subject: [PATCH] Bug 38476: Make DT 'Configure' button a link > >So that we can open in a separate bug using right click. >--- > koha-tmpl/intranet-tmpl/prog/js/datatables.js | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/datatables.js b/koha-tmpl/intranet-tmpl/prog/js/datatables.js >index 9813505421b..0a37132722f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/datatables.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/datatables.js >@@ -722,14 +722,17 @@ function _dt_buttons(params){ > } > > if ( table_settings && CAN_user_parameters_manage_column_config ) { >+ let href = '/cgi-bin/koha/admin/columns_settings.pl?module=%s&page=%s&table=%s'.format(table_settings.module, table_settings.page, table_settings.table); > buttons.push( > { >+ tag: "a", >+ attr: { href }, > className: "dt_button_configure_table", > fade: 100, > titleAttr: __("Configure table"), > text: '<i class="fa fa-lg fa-wrench"></i> <span class="dt-button-text">' + __("Configure") + '</span>', > action: function() { >- window.location = '/cgi-bin/koha/admin/columns_settings.pl?module=' + table_settings['module'] + '&page=' + table_settings['page'] + '&table=' + table_settings['table']; >+ window.location = href; > }, > } > ); >-- >2.34.1
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 38476
:
174765
|
174849