Changes for page App Within Minutes

Last modified by Thomas Mortagne on 2019/02/28 11:44

From version 2.1
edited by Thomas Mortagne
on 2014/09/22 15:15
Change comment: Install extension [org.xwiki.platform:xwiki-platform-appwithinminutes-ui-6.2]
To version 1.1
edited by Thomas Mortagne
on 2013/05/08 15:09
Change comment: Imported from XAR

Summary

Details

XWiki.JavaScriptExtension[0]
Code
... ... @@ -2,5 +2,6 @@
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 - deleteLink.href = deleteLink.href + '&xredirect=' + encodeURIComponent(window.location.href);
5 + // The delete URL doesn't have any query string by default.
6 + deleteLink.href = deleteLink.href + '?xredirect=' + encodeURIComponent(window.location.href);
6 6  });