Changes for page Message Sender Macro

Last modified by Bimit Administrator on 05.12.2023, 13:23

From version 3.1
edited by Bimit Administrator
on 05.12.2023, 13:18
Change comment: Migrated property [type] from class [XWiki.WikiMacroParameterClass]
To version 4.1
edited by Bimit Administrator
on 05.12.2023, 13:23
Change comment: Install extension [org.xwiki.platform:xwiki-platform-messagestream-ui/15.10]

Summary

Details

XWiki.JavaScriptExtension[0]
Code
... ... @@ -64,12 +64,7 @@
64 64   document.fire('xwiki:activity:newActivity', msForm);
65 65   },
66 66   onFailure: function(response) {
67 - var failureReason = '';
68 - if (response.statusText == '' /* No response */ || response.status == 12031 /* In IE */) {
69 - failureReason = 'Server not responding';
70 - } else {
71 - failureReason = response.statusText;
72 - }
67 + var failureReason = response.statusText || 'Server not responding';
73 73   if (msForm) {
74 74   msForm._disabled = false
75 75   if (msForm._notification) {
... ... @@ -78,9 +78,6 @@
78 78   msForm._notification = new XWiki.widgets.Notification("$services.localization.render('xe.activity.messages.submit.failed'): " + failureReason, 'error');
79 79   }
80 80   },
81 - on1223 : function(response) { /*SUCCESS*/
82 - response.request.options.onSuccess(response);
83 - },
84 84   on0 : function(response) { /*FAILURE*/
85 85   response.request.options.onFailure(response);
86 86   },
XWiki.StyleSheetExtension[0]
Code
... ... @@ -30,7 +30,7 @@
30 30  
31 31  /* User's avatar */
32 32  .messagestream .activitySnapshot .avatar {
33 - border-radius: 4px;
33 + border-radius: 7px;
34 34   box-shadow: 0 0 2px 1px rgba(128,128,128,0.6);
35 35  }
36 36  
XWiki.WikiMacroClass[0]
Default category
... ... @@ -1,1 +1,0 @@
1 -Social
Cached
... ... @@ -1,0 +1,1 @@
1 +No
Asynchronous rendering
... ... @@ -1,0 +1,1 @@
1 +No
Default categories
... ... @@ -1,0 +1,1 @@
1 +Social