Skip to content

Commit

Permalink
Restore section functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
janfaracik committed Oct 26, 2021
1 parent 122065f commit 7eba6bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions core/src/main/resources/lib/form/section.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ THE SOFTWARE.
</st:attribute>
</st:documentation>

<!-- Restore-->
<!-- <st:adjunct includes="lib.form.section_" />-->
<st:adjunct includes="lib.form.section_" />

<div class="jenkins-section">
<j:if test="${attrs.title!=null}">
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/resources/lib/form/section_.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 7eba6bc

Please sign in to comment.