From bb3200073b76f1ffa73fae83bc043c71ba363849 Mon Sep 17 00:00:00 2001 From: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Sat, 20 Nov 2021 16:54:40 +0000 Subject: [PATCH] Fix missing tabs (I want to replace all of this functionality before end of December) --- war/src/main/js/widgets/config/model/ConfigTableMetaData.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/war/src/main/js/widgets/config/model/ConfigTableMetaData.js b/war/src/main/js/widgets/config/model/ConfigTableMetaData.js index e1a5d3038158..d19d6cfcdb3a 100644 --- a/war/src/main/js/widgets/config/model/ConfigTableMetaData.js +++ b/war/src/main/js/widgets/config/model/ConfigTableMetaData.js @@ -32,7 +32,7 @@ function fromConfigTable(configTable) { // Mark the ancestor s of the section headers and add a title sectionHeaders.each(function () { var sectionHeader = $(this); - var sectionRow = closestTR(sectionHeader); + var sectionRow = sectionHeader; var sectionTitle = sectionRow.text(); // Remove leading hash from accumulated text in title (from element). @@ -110,7 +110,7 @@ function ConfigTableMetaData(configForm, configTable) { } ConfigTableMetaData.prototype.getTopRows = function() { - var topRows = this.configTableBody.find('tr, .tr'); + var topRows = this.configTableBody.find('tr, .tr, .jenkins-section > .jenkins-section__title'); return topRows; };