From f9a63173c6e98a01a32cca0dbf5d32520a39b7c9 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Mon, 16 Mar 2020 17:48:26 +0000 Subject: [PATCH] Bug 15668: (follow up) add selector to th follow up add a selector to the to ensure we count the table in questions. Should not affect other pages but is needed on detail.tt where there are two tables to configure Signed-off-by: Sally --- koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc index 1117050110..0105ae38b6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc @@ -8,7 +8,7 @@ function KohaTable(id_selector, dt_parameters, columns_settings, add_filters) { var selector = '#' + id_selector; $(columns_settings).each( function() { - var named_id = $( 'thead th[data-colname="' + this.columnname + '"]', selector ).index( 'th' ); + var named_id = $( 'thead th[data-colname="' + this.columnname + '"]', selector ).index( selector + ' th' ); var used_id = dt_parameters.bKohaColumnsUseNames ? named_id : counter; if ( used_id == -1 ) return; -- 2.11.0