Modifications pour le document Pièces jointes
Modifié par superadmin le 2021/12/12 21:55
modifié par Paul Libbrecht (admin)
sur 2016/07/26 21:53
sur 2016/07/26 21:53
modifié par Administrator
sur 2013/06/04 10:05
sur 2013/06/04 10:05
Commentaire de modification :
Import
Résumé
Détails
- Propriétés de la Page
-
- Auteur du document
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. adminPolx1 +XWiki.Admin - Contenu
-
... ... @@ -10,10 +10,7 @@ 10 10 #set ($sortedAttachments = $sorttool.sort($attachmentList, 'date:desc')) 11 11 #set ($lastAttachment = $sortedAttachments.get(0)) 12 12 #end 13 - $response.sendRedirect($targetDocument.getURL($docAction, $escapetool.url({ 14 - $fieldname: $lastAttachment.filename, 15 - 'form_token': $request.form_token 16 - }))) 13 + $response.sendRedirect($targetDocument.getURL($docAction, "$!{fieldname}=$!{lastAttachment.filename}&form_token=$!{escapetool.url($request.get('form_token'))}")) 17 17 #stop 18 18 #end 19 19 {{/velocity}} ... ... @@ -155,7 +155,7 @@ 155 155 <form action="$targetAttachDocument.getURL('upload')" enctype="multipart/form-data" method="post" id="uploadAttachment" class="uploadAttachment xform"> 156 156 <div class="gallery_upload_input"> 157 157 #if (${options.rawfilter} != '') 158 - <span class="xHint">$ escapetool.xml($services.localization.render("${translationPrefix}.upload.hint", [${options.rawfilter}]))</span>155 + <span class="xHint">$services.localization.render("${translationPrefix}.upload.hint", [${options.rawfilter}])</span> 159 159 #end 160 160 <input type="file" name="filepath" id="attachfile" class="attachment" size="30" title="$!{escapetool.xml($options.rawfilter)}"/> 161 161 <input type="hidden" name="xredirect" value="$xwiki.getDocument($attachmentPickerDocName).getURL('get', "xaction=postUpload&docAction=$!{escapetool.url($options.get('docAction'))}&targetdocname=$!{escapetool.url($targetAttachDocument.fullName)}&docname=$!{escapetool.url($targetDocument.fullName)}&fieldname=$!{escapetool.url($options.get('classname'))}_$!{escapetool.url($options.get('object'))}_$!{escapetool.url($options.get('property'))}&form_token=$!{services.csrf.getToken()}")" />
- XWiki.StyleSheetExtension[0]
-
- Code
-
... ... @@ -10,6 +10,11 @@ 10 10 #set ($imgSize = $mathtool.sub($boxSize, $mathtool.mul($boxPadding, 2))) 11 11 #set ($actionsHeight = 20) 12 12 #set ($actionsWidth = 16) 13 +#macro (__css3 $rule) 14 + ${rule}; 15 + -moz-${rule}; 16 + -webkit-${rule}; 17 +#end 13 13 /*--------------------------------------------------------*/ 14 14 /* Attachment picker layout fixes */ 15 15 .attachment-picker p { ... ... @@ -27,7 +27,7 @@ 27 27 .gallery_attachmentbox { 28 28 background: $theme.pageContentBackgroundColor; 29 29 border: 1px solid $theme.borderColor; 30 - border-radius: 5px ;35 + #__css3('border-radius: 5px') 31 31 float: left; 32 32 margin: ${boxMargin}px; 33 33 overflow: hidden; ... ... @@ -57,7 +57,7 @@ 57 57 .gallery_attachmenttitle { 58 58 background: $theme.backgroundSecondaryColor; 59 59 border-bottom: 1px dotted $theme.borderColor; 60 - border-radius: 5px 5px 0px 0px ;65 + #__css3('border-radius: 5px 5px 0px 0px') 61 61 font-size: 85%; 62 62 padding: 3px ${boxPadding}px; 63 63 overflow: hidden;
- XWiki.WikiMacroClass[0]
-
- Code de la macro
-
... ... @@ -130,7 +130,7 @@ 130 130 {{velocity}} 131 131 #if ("${savemode}" == 'direct') 132 132 (% class="attachment-picker" %)(((#attachmentPicker_displayAttachment($propValue $displayImage $link true) #attachmentPicker_displayButton()))) 133 -#elseif ($ xcontext.action == 'inline' || $xcontext.action == 'edit')133 +#elseif ($context.action == 'inline' || $context.action == 'edit') 134 134 (% class="attachment-picker" %)(((## 135 135 #attachmentPicker_displayAttachment($propValue $displayImage false true) #attachmentPicker_displayButton()## 136 136 {{html}}<input type="hidden" name="${classname}_${object}_${property}" value="${propValue}"/>{{/html}}##