Skip to content

Commit

Permalink
[FIXED JENKINS-25455] Show StringScriptSource by default and thus avo…
Browse files Browse the repository at this point in the history
…id zero height of the textarea
  • Loading branch information
vjuranek committed Nov 8, 2014
1 parent 3d18cd9 commit f91e219
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/main/resources/hudson/plugins/groovy/Groovy/config.jelly
Expand Up @@ -13,8 +13,9 @@
</f:entry>

<f:entry>
<g:multi-hetero-radio field="scriptSource" descriptors="${descriptor.scriptSources}"
id="${descriptor.nextInstanceID()}"/>
<g:multi-hetero-radio field="scriptSource" descriptors="${descriptor.scriptSources}"
id="${descriptor.nextInstanceID()}"
defaultDescriptor="${app.getDescriptorByName('StringScriptSource')}"/>
</f:entry>

<f:advanced>
Expand Down
Expand Up @@ -38,13 +38,16 @@ THE SOFTWARE.
<st:attribute name="id" use="required">
Id of the radioBlock group.
</st:attribute>
<st:attribute name="defaultDescriptor">
Default option to be used.
</st:attribute>
</st:documentation>

<f:prepareDatabinding/>

<table style="width:100%">
<j:set var="currentInstance" value="${instance[field]}"/>
<j:set var="currentDescriptor" value="${currentInstance.descriptor}"/>
<j:set var="currentDescriptor" value="${currentInstance.descriptor != null ? currentInstance.descriptor : defaultDescriptor}"/>
<j:forEach var="d" items="${descriptors}" varStatus="loop">
<f:radioBlock name="${id}.${field}" help="${d.helpFile}" value="${loop.index}"
title="${d.displayName}" checked="${currentDescriptor==d}">
Expand Down

0 comments on commit f91e219

Please sign in to comment.