Изменения документа Message Sender Macro
Редактировал(а) Андрей Ганьков 2024/01/24 04:47
От версии 1.1
отредактировано superadmin
на 2020/10/06 10:51
на 2020/10/06 10:51
Изменить комментарий:
Install extension [org.xwiki.platform:xwiki-platform-messagestream-ui/12.8]
К версии 4.1
отредактировано Андрей Ганьков
на 2022/02/04 18:21
на 2022/02/04 18:21
Изменить комментарий:
Install extension [org.xwiki.platform:xwiki-platform-messagestream-ui/14.0]
Сводка
-
Свойства страницы (1 изменено, 0 добавлено, 0 удалено)
-
Объекты (2 изменено, 0 добавлено, 0 удалено)
Подробности
- Свойства страницы
-
- Автор документа
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. superadmin1 +xwiki:XWiki.gav
- XWiki.JavaScriptExtension[0]
-
- Код
-
... ... @@ -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.WikiMacroParameterClass[2]
-
- Описание параметра
-
... ... @@ -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 ualt ones: 'everyone', 'followers', 'group', 'user'.3 +This list should be a sublist of the default ones: 'everyone', 'followers', 'group', 'user'.