Skip to content

Commit

Permalink
Show multivalue option editor even if no allowed values are defined
Browse files Browse the repository at this point in the history
  • Loading branch information
gschueler committed Mar 2, 2011
1 parent 3580168 commit b13a68c
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
</g:if>

<%-- The Dropdown list --%>
<g:if test="${(values || optionSelect.values) && !err}">
<g:if test="${(values || optionSelect.values || optionSelect.multivalued) && !err}">


<g:set var="labelsSet" value="${values && values instanceof Map?values.keySet():values?values:optionSelect.values?optionSelect.values:[]}"/>
Expand Down Expand Up @@ -84,6 +84,11 @@
);
</g:javascript>
</g:if>
<g:if test="${!labelsSet && !newvals}">
<g:javascript>
fireWhenReady('${rkey}varinput', function(){ ExecutionOptions.addMultivarValue('${optName.encodeAsJavaScript()}','${rkey}varinput'); } );
</g:javascript>
</g:if>
</g:if>
<g:each in="${labelsSet}" var="sellabel">
<g:set var="entry" value="${sellabel instanceof Map?sellabel:[name:sellabel,value:sellabel]}"/>
Expand Down

0 comments on commit b13a68c

Please sign in to comment.