aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/wiki.tpl
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-10-23 07:28:38 +1100
committerGitHub <noreply@github.com>2016-10-23 07:28:38 +1100
commit0b5d5507800b2e1122eb2432929c203538b2e835 (patch)
tree75cff355b5f79c127a287d8a6c56f5e447a67a00 /view/tpl/wiki.tpl
parentac5ad0b9cecc0f4ec912e654ab0690e391170cd1 (diff)
parent02cf7274d28d093094067114d208537cf135266b (diff)
downloadvolse-hubzilla-0b5d5507800b2e1122eb2432929c203538b2e835.tar.gz
volse-hubzilla-0b5d5507800b2e1122eb2432929c203538b2e835.tar.bz2
volse-hubzilla-0b5d5507800b2e1122eb2432929c203538b2e835.zip
Merge pull request #565 from anaqreon/wiki-download
Add wiki download button to export the selected wiki repo to a zip file
Diffstat (limited to 'view/tpl/wiki.tpl')
-rw-r--r--view/tpl/wiki.tpl4
1 files changed, 4 insertions, 0 deletions
diff --git a/view/tpl/wiki.tpl b/view/tpl/wiki.tpl
index c05b33a61..8fdf56e77 100644
--- a/view/tpl/wiki.tpl
+++ b/view/tpl/wiki.tpl
@@ -239,6 +239,10 @@ function wiki_delete_wiki(wikiHtmlName, resource_id) {
}, 'json');
}
+
+function wiki_download_wiki(resource_id) {
+ window.location = "wiki/{{$channel}}/download/wiki/" + resource_id;
+}
$('#new-page-submit').click(function (ev) {
if (window.wiki_resource_id === '') {