Änderungen von Dokument Message Sender Macro
Zuletzt geändert von xwikiadmin am 2024/01/25 22:09
Von Version 6.1
bearbeitet von xwikiadmin
am 2024/01/25 22:03
am 2024/01/25 22:03
Änderungskommentar:
Migrated property [type] from class [XWiki.WikiMacroParameterClass]
Auf Version 1.1
bearbeitet von xwikiadmin
am 2020/06/24 19:59
am 2020/06/24 19:59
Änderungskommentar:
Install extension [org.xwiki.platform:xwiki-platform-messagestream-ui/12.4]
Zusammenfassung
-
Objekte (3 geändert, 0 hinzugefügt, 0 gelöscht)
Details
- XWiki.JavaScriptExtension[0]
-
- Code
-
... ... @@ -64,7 +64,12 @@ 64 64 document.fire('xwiki:activity:newActivity', msForm); 65 65 }, 66 66 onFailure: function(response) { 67 - var failureReason = response.statusText || 'Server not responding'; 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 + } 68 68 if (msForm) { 69 69 msForm._disabled = false 70 70 if (msForm._notification) { ... ... @@ -73,6 +73,9 @@ 73 73 msForm._notification = new XWiki.widgets.Notification("$services.localization.render('xe.activity.messages.submit.failed'): " + failureReason, 'error'); 74 74 } 75 75 }, 81 + on1223 : function(response) { /*SUCCESS*/ 82 + response.request.options.onSuccess(response); 83 + }, 76 76 on0 : function(response) { /*FAILURE*/ 77 77 response.request.options.onFailure(response); 78 78 },
- XWiki.WikiMacroClass[0]
-
- Cached
-
... ... @@ -1,1 +1,0 @@ 1 -Nein - Asynchrones Rendern
-
... ... @@ -1,1 +1,0 @@ 1 -Nein - Standardkategorie
-
... ... @@ -1,0 +1,1 @@ 1 +Social - Default categories
-
... ... @@ -1,1 +1,0 @@ 1 -Social
- XWiki.WikiMacroParameterClass[2]
-
- Parameter-Beschreibung
-
... ... @@ -1,3 +1,3 @@ 1 1 Comma separated list of visibility options that the macro should allow the user to choose from. 2 2 3 -This list should be a sublist of the def ault ones: 'everyone', 'followers', 'group', 'user'.3 +This list should be a sublist of the defualt ones: 'everyone', 'followers', 'group', 'user'.