Changes for page Attachments
Last modified by Ludovic Dubost on 2024/07/22 15:50
From version 11.1
edited by Ludovic Dubost
on 2020/07/30 11:14
on 2020/07/30 11:14
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-attachment-ui/12.3]
To version 14.1
edited by Ludovic Dubost
on 2022/04/20 17:58
on 2022/04/20 17:58
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-attachment-ui/14.0]
Summary
-
Objects (3 modified, 0 added, 0 removed)
Details
- XWiki.JavaScriptExtension[0]
-
- Code
-
... ... @@ -173,10 +173,7 @@ 173 173 this.dialog.closeDialog(); 174 174 }.bindAsEventListener(this), 175 175 onFailure : function(response) { 176 - var failureReason = response.statusText; 177 - if (response.statusText == '' /* No response */ || response.status == 12031 /* In IE */) { 178 - failureReason = 'Server not responding'; 179 - } 176 + var failureReason = response.statusText || 'Server not responding'; 180 180 if (targetElement._x_notif) { 181 181 targetElement._x_notif.replace(new XWiki.widgets.Notification("$services.localization.render('core.widgets.confirmationBox.notification.failed')" + failureReason, "error")); 182 182 } else { ... ... @@ -183,9 +183,6 @@ 183 183 new XWiki.widgets.Notification(this.interactionParameters.failureMessageText + failureReason, "error"); 184 184 } 185 185 }, 186 - on1223 : function(response) { 187 - response.request.options.onSuccess(response); 188 - }, 189 189 on0 : function(response) { 190 190 response.request.options.onFailure(response); 191 191 },
- XWiki.StyleSheetExtension[0]
-
- Code
-
... ... @@ -140,9 +140,6 @@ 140 140 ## Make this box twice as large as the others 141 141 width: ${uploadBoxSize}px; 142 142 } 143 -* html .gallery_upload { 144 - width: ${mathtool.add($uploadBoxSize, 2)}px; 145 -} 146 146 .gallery_upload, .gallery_upload:hover { 147 147 background-color: $theme.backgroundSecondaryColor; 148 148 }
- XWiki.WikiMacroClass[0]
-
- Macro code
-
... ... @@ -3,7 +3,6 @@ 3 3 $xwiki.ssfx.use('js/xwiki/widgets/modalPopup.css', true)## 4 4 $xwiki.jsx.use($xcontext.macro.doc.fullName)## 5 5 $xwiki.ssx.use($xcontext.macro.doc.fullName)## 6 -$xwiki.jsfx.use('js/scriptaculous/builder.js')## 7 7 ## Integrates the optional Lightbox widget (from http://extensions.xwiki.org/xwiki/bin/view/Extension/Lightbox+Application ) 8 8 #if ($xwiki.exists('XWiki.Lightbox')) 9 9 $xwiki.jsx.use('XWiki.Lightbox')