Modifications pour le document App Within Minutes
Modifié par superadmin le 2019/10/13 21:36
modifié par Administrator
sur 2013/06/04 10:06
sur 2013/06/04 10:06
modifié par Paul Libbrecht (admin)
sur 2016/07/26 22:02
sur 2016/07/26 22:02
Commentaire de modification :
Install extension [org.xwiki.platform:xwiki-platform-appwithinminutes-ui-8.2]
Résumé
Détails
- Propriétés de la Page
-
- Auteur du document
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. Admin1 +XWiki.adminPolx - Contenu
-
... ... @@ -24,4 +24,5 @@ 24 24 }) 25 25 #set($columns = ['doc.space', 'doc.author', 'doc.date', '_actions']) 26 26 #livetable('livetable' $columns $columnsProperties $options) 27 +#set($docextras=[]) 27 27 {{/velocity}}
- XWiki.JavaScriptExtension[0]
-
- Code
-
... ... @@ -1,7 +1,14 @@ 1 1 document.observe('xwiki:livetable:newrow', function(event) { 2 + // Fix the display of the application name. 3 + var appLink = event.memo.row.down('td.doc_space a'); 4 + var appReference = XWiki.Model.resolve(event.memo.data['doc_space'], XWiki.EntityType.SPACE); 5 + var appLocation = appReference.getReversedReferenceChain().map(function(spaceReference) { 6 + return spaceReference.name; 7 + }).join(' \u00BB '); 8 + appLink.update(appLocation.escapeHTML()); 9 + 2 2 // Add the xredirect parameter to the query string of the delete action to 3 3 // redirect the user back to the live table after an application is deleted. 4 4 var deleteLink = event.memo.row.down('td.actions').down('a.actiondelete'); 5 - // The delete URL doesn't have any query string by default. 6 - deleteLink.href = deleteLink.href + '?xredirect=' + encodeURIComponent(window.location.href); 13 + deleteLink.href = deleteLink.href + '&xredirect=' + encodeURIComponent(window.location.href); 7 7 });