Modifications pour le document Message Sender Macro
                  Modifié par Tobias Wintrich le 2025/10/31 08:26
              
      
      Depuis la version  5.1 
    
    
              modifié par Tobias Wintrich
        
sur 2024/06/21 14:35
     sur 2024/06/21 14:35
      Commentaire de modification :
              Install extension [org.xwiki.platform:xwiki-platform-messagestream-ui/16.4.0]
          
         
      À la version  2.1 
    
    
              modifié par Tobias Wintrich
        
sur 2022/09/15 15:18
     sur 2022/09/15 15:18
      Commentaire de modification :
              Migrated property [defaultCategories] from class [XWiki.WikiMacroClass]
          
         Résumé
- 
          Objets (3 modifications, 0 ajouts, 0 suppressions)
 
Détails
- 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.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]
 -   
- Mis en cache
 -   
... ... @@ -1,1 +1,0 @@ 1 -Non  - Rendu asynchrone
 -   
... ... @@ -1,1 +1,0 @@ 1 -Non  - Default categories
 -   
... ... @@ -1,1 +1,0 @@ 1 -Social  - Catégorie par défaut
 -   
... ... @@ -1,0 +1,1 @@ 1 +Social