From 7827a941d45997db9d54c4f402257befc1c14082 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 25 Oct 2017 10:55:12 +0000 Subject: [PATCH] Bug 16759: Use index of elements in specific table Signed-off-by: Jonathan Druart --- koha-tmpl/opac-tmpl/bootstrap/en/includes/columns_settings.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/columns_settings.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/columns_settings.inc index b065a35524..38422b221e 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/columns_settings.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/columns_settings.inc @@ -6,7 +6,8 @@ function KohaTable(selector, dt_parameters, columns_settings) { var hidden_ids = []; var included_ids = []; $(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 : id; if ( used_id == -1 ) return; -- 2.39.5