From 050fb1993f6d6ae52e50f4161ab8473f0747e7b9 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 25 Oct 2017 10:55:12 +0000 Subject: [PATCH] Bug 16759: Followup Use index of elements in specific table --- 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 b065a35..38422b2 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.1.4