Changes for page Message Sender Macro
on 2024/11/02 16:43
on 2019/04/03 13:12
Summary
-
Objects (3 modified, 0 added, 0 removed)
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 category
-
... ... @@ -1,0 +1,1 @@ 1 +Social - Default categories
-
... ... @@ -1,1 +1,0 @@ 1 -Social