From f44167b4ed3110fcb05af71d4c870e8514ceb895 Mon Sep 17 00:00:00 2001 From: Jonathan Druart 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 Signed-off-by: Marcel de Rooy --- 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: ' ' + __("Configure") + '', 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