From 4cc31254e3683ad204bee34fa0b7a4b90139b046 Mon Sep 17 00:00:00 2001 From: juanf <juanf> Date: Fri, 11 Nov 2016 14:29:17 +0000 Subject: [PATCH] SSDM-2597 : bugfix, avoiding grid to loose the sorted column mark SVN: 37315 --- .../eln-lims/1/as/webapps/eln-lims/html/lib/grid/js/Grid.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/grid/js/Grid.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/grid/js/Grid.js index 348fdebfba4..7dc0026878d 100644 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/grid/js/Grid.js +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/grid/js/Grid.js @@ -634,8 +634,9 @@ $.extend(Grid.prototype, { //HACK: Fixes extra headers added on this fuelux 3.1.0 when rendering again var tableHeads = $(thisGrid.panel).find('thead'); if(tableHeads.length > 1) { - for(var hIdx = 0; hIdx < tableHeads.length - 1; hIdx++) { - $(tableHeads[hIdx]).remove(); + for(var hIdx = 1; hIdx < tableHeads.length; hIdx++) { + var bugHeader = $(tableHeads[hIdx]); + bugHeader.remove(); } } //HACK: Legacy Hacks no longer needed -- GitLab