Failed to execute template. Cause: [Access denied when checking [script] access to [xwiki:Collaboratory.UX.HbpSkin.WebHome] for user [xwiki:XWiki.Admin]]. Click on this message for details.

Message Sender Macro - HBP Wiki

IAM21 instance, do not create collab nor modify a team, your changes will be lost


Changes for page Message Sender Macro

Last modified by superadmin on 2024/11/04 17:32

From version 6.1
edited by superadmin
on 2024/11/04 15:28
Change comment: Migrated property [type] from class [XWiki.WikiMacroParameterClass]
To version 4.1
edited by superadmin
on 2024/11/02 16:39
Change comment: Migrated property [defaultCategories] from class [XWiki.WikiMacroClass]

Summary

Details

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