Changes for page Attachments


on 2022-03-20 10:03

on 2020-04-11 15:51
Summary
Details
- XWiki.JavaScriptExtension[0]
-
- Code
-
... ... @@ -173,7 +173,10 @@ 173 173 this.dialog.closeDialog(); 174 174 }.bindAsEventListener(this), 175 175 onFailure : function(response) { 176 - var failureReason = response.statusText || 'Server not responding'; 176 + var failureReason = response.statusText; 177 + if (response.statusText == '' /* No response */ || response.status == 12031 /* In IE */) { 178 + failureReason = 'Server not responding'; 179 + } 177 177 if (targetElement._x_notif) { 178 178 targetElement._x_notif.replace(new XWiki.widgets.Notification("$services.localization.render('core.widgets.confirmationBox.notification.failed')" + failureReason, "error")); 179 179 } else { ... ... @@ -180,6 +180,9 @@ 180 180 new XWiki.widgets.Notification(this.interactionParameters.failureMessageText + failureReason, "error"); 181 181 } 182 182 }, 186 + on1223 : function(response) { 187 + response.request.options.onSuccess(response); 188 + }, 183 183 on0 : function(response) { 184 184 response.request.options.onFailure(response); 185 185 },
- XWiki.StyleSheetExtension[0]
-
- Code
-
... ... @@ -140,6 +140,9 @@ 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 +} 143 143 .gallery_upload, .gallery_upload:hover { 144 144 background-color: $theme.backgroundSecondaryColor; 145 145 }
- XWiki.WikiMacroClass[0]
-
- Macro code
-
... ... @@ -3,6 +3,7 @@ 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')## 6 6 ## Integrates the optional Lightbox widget (from http://extensions.xwiki.org/xwiki/bin/view/Extension/Lightbox+Application ) 7 7 #if ($xwiki.exists('XWiki.Lightbox')) 8 8 $xwiki.jsx.use('XWiki.Lightbox')