Modifiche per il documento Macros

Ultima modifica di Jip-jan Alunkel il aprile 15, 18:09

Dalla versione 2.116
modificato da Jip-jan Alunkel
il luglio 02, 22:36
Cambia il commento: Update document after refactoring.
Alla versione 2.120
modificato da Jip-jan Alunkel
il luglio 02, 22:50
Cambia il commento: Update document after refactoring.

Summary

Details

Page properties
Content
... ... @@ -117,7 +117,10 @@
117 117  #macro(createSelectElement $O_elementData $O_tagName)
118 118   <select class="form-select form-control"#if($O_elementData.aria-label) aria-label="${O_elementData.aria-label}"#end aria-describedby="${O_elementData.id}_helpBlock"#if($O_elementData.required == "true") aria-required="true" required="required" data-error-response-type="${O_elementData.data-error-response-type}"#else aria-required="false"#end#if(${O_elementData.data-set-space}) data-set-space="${O_elementData.data-set-space}"#end#if($O_elementData.select-spaces-json) data-select-spaces-json="true"#end name="${O_elementData.id}" id="${O_elementData.id}">
119 119   #if($O_elementData.placeholder)
120 + #if($O_elementData.select-json && $O_elementData.select-json.keySet().contains($O_elementData.value))
121 + #else
120 120   <option value="" disabled=""#if(!$O_elementData.value) selected=""#end hidden="hidden">${O_elementData.placeholder}</option>
123 + #end
121 121   #end
122 122   #set($mydoc = $xwiki.getDocument('assets.pagemaker.pagemakerClass'))
123 123   #if($mydoc.isNew() && $hasProgramming)
... ... @@ -190,7 +190,7 @@
190 190   #end
191 191   #end
192 192   #end
193 - <option value="$key"#if($O_elementData.value=="$key") selected="selected"#end>$spaceDocTitle</option>
196 + <option value="$key"#if($O_elementData.value=="$key") selected=""#end>$spaceDocTitle</option>
194 194   #end
195 195   #end
196 196   </select>