Bugzilla – Attachment 174923 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.74 KB, created by
Marcel de Rooy
on 2024-11-22 10:59:19 UTC
(
hide
)
Description:
Bug 38476: Make DT 'Configure' button a link
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2024-11-22 10:59:19 UTC
Size:
1.74 KB
patch
obsolete
>From f44167b4ed3110fcb05af71d4c870e8514ceb895 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 >Content-Type: text/plain; charset=utf-8 > >So that we can open in a separate bug using right click. > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > 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 bf3be9c64f..8b342d7cb0 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/datatables.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/datatables.js >@@ -739,14 +739,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.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 38476
:
174765
|
174849
| 174923