Changes for page Attachments

Last modified by Sebastian Marsching on 2024/01/08 23:13

From version 10.1
edited by Sebastian Marsching
on 2023/08/13 16:14
Change comment: Migrated property [type] from class [XWiki.WikiMacroParameterClass]
To version 12.1
edited by Sebastian Marsching
on 2024/01/08 23:13
Change comment: Install extension [org.xwiki.platform:xwiki-platform-attachment-ui/15.10.4]

Summary

Details

XWiki.JavaScriptExtension[0]
Code
... ... @@ -123,7 +123,7 @@
123 123   hasErrors = true;
124 124   }
125 125   const beforeUploadEvent = Event.fire(document, 'xwiki:actions:beforeUpload', {
126 - file: fileInput
126 + file: fileInput.files[0]
127 127   });
128 128  
129 129   if (beforeUploadEvent.defaultPrevented) {
XWiki.StyleSheetExtension[0]
Code
... ... @@ -27,7 +27,7 @@
27 27  .gallery_attachmentbox {
28 28   background: $theme.pageContentBackgroundColor;
29 29   border: 1px solid $theme.borderColor;
30 - border-radius: 5px;
30 + border-radius: 8px;
31 31   float: left;
32 32   margin: ${boxMargin}px;
33 33   overflow: hidden;
... ... @@ -49,7 +49,7 @@
49 49  .gallery_attachmenttitle {
50 50   background: $theme.backgroundSecondaryColor;
51 51   border-bottom: 1px dotted $theme.borderColor;
52 - border-radius: 5px 5px 0px 0px;
52 + border-radius: 8px 8px 0px 0px;
53 53   font-size: 85%;
54 54   padding: 3px ${boxPadding}px;
55 55   overflow: hidden;