From 7eba6bc436e01aff17a4fe9e384eb1a2c97aab8f Mon Sep 17 00:00:00 2001 From: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Tue, 26 Oct 2021 21:38:59 +0100 Subject: [PATCH] Restore section functionality --- core/src/main/resources/lib/form/section.jelly | 3 +-- core/src/main/resources/lib/form/section_.js | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/core/src/main/resources/lib/form/section.jelly b/core/src/main/resources/lib/form/section.jelly index 1d7996823398..ddf11d2ce024 100644 --- a/core/src/main/resources/lib/form/section.jelly +++ b/core/src/main/resources/lib/form/section.jelly @@ -36,8 +36,7 @@ THE SOFTWARE. - - +
diff --git a/core/src/main/resources/lib/form/section_.js b/core/src/main/resources/lib/form/section_.js index b6f0732dc864..a243d76a5ecd 100644 --- a/core/src/main/resources/lib/form/section_.js +++ b/core/src/main/resources/lib/form/section_.js @@ -52,7 +52,7 @@ var section = (function (){ for (var e=dom.firstChild; e!=null; e=e.nextSibling) { if (e.nodeType==1) { - if (e.className=="section-header" && isVisible(e)) { + if (e.className === "jenkins-section__title" && isVisible(e)) { var child = new SectionNode(e); parent.children.push(child); // The next line seems to be unnecessary, as there are no children inside the section header itself.