Änderungen von Dokument Anhänge

Zuletzt geändert von Wiki Admin am 2026/11/02 19:06

Von Version 10.1
bearbeitet von Wiki Admin
am 2026/10/06 19:37
Änderungskommentar: Install extension [org.xwiki.platform:xwiki-platform-attachment-ui/18.8.0]
Auf Version 11.1
bearbeitet von Wiki Admin
am 2026/11/02 19:06
Änderungskommentar: Install extension [org.xwiki.platform:xwiki-platform-attachment-ui/18.9.0]

Zusammenfassung

Details

XWiki.JavaScriptExtension[0]
Code
... ... @@ -55,7 +55,7 @@
55 55   // this.property.down('input').value = uploadForm.down('input[type="file"]').value;
56 56   // uploadForm.xredirect.value = window.location.pathname;
57 57   document.observe('xwiki:document:saved', function () {
58 - new XWiki.widgets.Notification("$services.localization.render('xe.attachmentSelector.upload.inProgress')",
58 + XWiki.widgets.Notification.show("$services.localization.render('xe.attachmentSelector.upload.inProgress')",
59 59   'inprogress');
60 60   uploadForm.submit();
61 61   })
... ... @@ -117,10 +117,10 @@
117 117   var hasErrors = false;
118 118   uploadForm.select('input[type="file"]').each(function(fileInput) {
119 119   if (fileInput.value == '') {
120 - new XWiki.widgets.Notification("$services.localization.render('xe.attachmentSelector.upload.error.noFile')", 'error');
120 + XWiki.widgets.Notification.show("$services.localization.render('xe.attachmentSelector.upload.error.noFile')", 'error');
121 121   hasErrors = true;
122 122   } else if (fileInput.__allowedExtensions && fileInput.__allowedExtensions.indexOf(this.getFileExtension(fileInput.value)) == -1) {
123 - new XWiki.widgets.Notification("$services.localization.render('xe.attachmentSelector.upload.error.badExtension')", 'error');
123 + XWiki.widgets.Notification.show("$services.localization.render('xe.attachmentSelector.upload.error.badExtension')", 'error');
124 124   hasErrors = true;
125 125   }
126 126   const beforeUploadEvent = Event.fire(document, 'xwiki:actions:beforeUpload', {
... ... @@ -242,7 +242,7 @@
242 242   if (targetElement._x_notif) {
243 243   targetElement._x_notif.replace(new XWiki.widgets.Notification("$services.localization.render('core.widgets.confirmationBox.notification.failed')" + failureReason, "error"));
244 244   } else {
245 - new XWiki.widgets.Notification(this.interactionParameters.failureMessageText + failureReason, "error");
245 + XWiki.widgets.Notification.show(this.interactionParameters.failureMessageText + failureReason, "error");
246 246   }
247 247   },
248 248   on0 : function(response) {