Bug 38476: Make DT 'Configure' button a link
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>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit d53784de3a)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
Signed-off-by: wainuiwitikapark <wainuiwitikapark@catalyst.net.nz>
This commit is contained in:
parent
29a6f938e4
commit
63bb6bfd67
|
|
@ -758,14 +758,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;
|
||||
},
|
||||
}
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue