<
From version < 4.1 >
edited by Thomas Mortagne
on 2012/03/02
To version < 5.1 >
edited by Vincent Massol
on 2012/10/16
>
Change comment: Imported from XAR

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.ThomasMortagne
1 +XWiki.VincentMassol
Hidden
... ... @@ -1,1 +1,1 @@
1 -false
1 +true
Content
... ... @@ -1,16 +1,20 @@
1 1  {{velocity}}
2 2  $msg.get('platform.appwithinminutes.description')
3 3  
4 -(% class="buttonwrapper" %)[[$msg.get('platform.appwithinminutes.createAppButtonLabel')>>CreateApplication||class="button"]]
4 +#if($hasCreateSpace)
5 + (% class="buttonwrapper" %)[[$msg.get('platform.appwithinminutes.createAppButtonLabel')>>CreateApplication||class="button"]]
5 5  
7 +#end
6 6  = $msg.get('platform.appwithinminutes.appsLiveTableHeading') =##
7 7  #set($columnsProperties = {
8 8   'doc.space': {'type': 'text', 'link': 'view', 'size': 10, 'filterable': true, 'sortable': true},
9 9   'doc.author': {'type': 'text', 'link': 'author', 'size': 10, 'filterable': true, 'sortable': true},
10 - 'doc.date': {'type': 'text', 'size': 10, 'filterable': true, 'sortable': true}
12 + 'doc.date': {'type': 'text', 'size': 10, 'filterable': true, 'sortable': true},
13 + '_actions': {'html': true, 'sortable': false, 'actions': ['edit', 'delete']}
11 11  })
12 12  #set($options = {
13 13   'className': 'AppWithinMinutes.LiveTableClass',
17 + 'resultPage' : 'AppWithinMinutes.AppsLiveTableResults',
14 14   'translationPrefix': 'platform.appwithinminutes.appsLiveTable.',
15 15   'tagCloud': true,
16 16   'rowCount': 15,
... ... @@ -18,6 +18,6 @@
18 18   'selectedColumn': 'doc.space',
19 19   'defaultOrder': 'asc'
20 20  })
21 -#set($columns = ['doc.space', 'doc.author', 'doc.date'])
25 +#set($columns = ['doc.space', 'doc.author', 'doc.date', '_actions'])
22 22  #livetable('livetable' $columns $columnsProperties $options)
23 23  {{/velocity}}
XWiki.JavaScriptExtension[0]
Caching policy
... ... @@ -1,0 +1,1 @@
1 +long
Code
... ... @@ -1,0 +1,7 @@
1 +document.observe('xwiki:livetable:newrow', function(event) {
2 + // Add the xredirect parameter to the query string of the delete action to
3 + // redirect the user back to the live table after an application is deleted.
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);
7 +});
Name
... ... @@ -1,0 +1,1 @@
1 +Code
Parse content
... ... @@ -1,0 +1,1 @@
1 +No
Use this extension
... ... @@ -1,0 +1,1 @@
1 +currentPage

Get Connected