Skip to content

Commit

Permalink
[JENKINS-72189] fix drag&drop handle for existing repeatables (#8613)
Browse files Browse the repository at this point in the history
[JENKINS-72189] fix drag&drop handle for repeatables
  • Loading branch information
mawinter69 authored Oct 30, 2023
1 parent e70dc62 commit c5442a0
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions core/src/main/resources/lib/form/repeatable.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,7 @@ THE SOFTWARE.
<!-- The first DIV is the master copy. -->
<div class="repeated-chunk to-be-removed" name="${name}">
<div class="repeated-chunk__header">
<j:if test="${!empty(header)}"><div class="${readOnlyMode ? '' : 'dd-handle'}"/></j:if>
${header}
<j:if test="${!empty(header)}"><div class="${readOnlyMode ? '' : 'dd-handle'}"/>${header}</j:if>
</div>
<j:scope>
<j:set var="${var}" value="${null}"/>
Expand All @@ -151,7 +150,9 @@ THE SOFTWARE.
<j:forEach var="loop" varStatus="loopStatus" items="${items}">
<div class="repeated-chunk" name="${name}">
<j:set var="${var}" value="${loop}" />
<j:if test="${!empty(header)}"><div class="${readOnlyMode ? '' : 'dd-handle'}">${header}</div></j:if>
<div class="repeated-chunk__header">
<j:if test="${!empty(header)}"><div class="${readOnlyMode ? '' : 'dd-handle'}"/>${header}</j:if>
</div>
<d:invokeBody />
</div>
</j:forEach>
Expand All @@ -161,7 +162,9 @@ THE SOFTWARE.
<j:forEach begin="${h.size2(items)}" end="${minimum-1}" var="i">
<j:set var="${var}" value="${null}" />
<div class="repeated-chunk" name="${name}">
<j:if test="${!empty(header)}"><div class="${readOnlyMode ? '' : 'dd-handle'}">${header}</div></j:if>
<div class="repeated-chunk__header">
<j:if test="${!empty(header)}"><div class="${readOnlyMode ? '' : 'dd-handle'}"/>${header}</j:if>
</div>
<d:invokeBody />
</div>
</j:forEach>
Expand Down

0 comments on commit c5442a0

Please sign in to comment.