Changes for page Attachments
Last modified by Сергей Коршунов on 2025/05/01 20:26
From version 7.1
edited by Сергей Коршунов
on 2022/12/22 17:40
on 2022/12/22 17:40
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-attachment-ui/14.10.1]
To version 6.1
edited by Сергей Коршунов
on 2022/10/31 15:50
on 2022/10/31 15:50
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-attachment-ui/14.9]
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -333,10 +333,8 @@ 333 333 $!targetDocument.use($targetDocument.getObject($options.classname, $options.object))## 334 334 #attachmentPicker_displayAttachmentGallery($targetDocument, $targetAttachDocument, $options) 335 335 336 - #set ($cancelLinkName = $services.rendering.escape($services.rendering.escape($services.localization.render("${translationPrefix}.cancel"), 'xwiki/2.1'), 'xwiki/2.1')) 337 - #set ($cancelLinkTarget = $services.rendering.escape($services.model.serialize($targetDocument), 'xwiki/2.1')) 338 338 (% class="gallery_buttons buttons" %)((( 339 - (% class="buttonwrapper secondary" %)[[$can celLinkName>>$cancelLinkTarget||class="button secondary" id="attachment-picker-close"]]337 + (% class="buttonwrapper secondary" %)[[$services.localization.render("${translationPrefix}.cancel")>>${targetDocument}||class="button secondary" id="attachment-picker-close"]] 340 340 ))) 341 341 #end 342 342 {{/velocity}}
- XWiki.JavaScriptExtension[0]
-
- Code
-
... ... @@ -122,13 +122,6 @@ 122 122 new XWiki.widgets.Notification("$services.localization.render('xe.attachmentSelector.upload.error.badExtension')", 'error'); 123 123 hasErrors = true; 124 124 } 125 - const beforeUploadEvent = Event.fire(document, 'xwiki:actions:beforeUpload', { 126 - file: fileInput 127 - }); 128 - 129 - if (beforeUploadEvent.defaultPrevented) { 130 - hasErrors = true; 131 - } 132 132 }.bind(this)); 133 133 if (!hasErrors) { 134 134 if (this.directSave) {