aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-10-10 08:39:28 +0000
committerMario <mario@mariovavti.com>2018-10-10 11:06:39 +0200
commitc7644ad29dfdfd237125d3c8815ae62b8457b80a (patch)
tree5d2caddd4abb374897c9e3a0a138f795b8d75e56 /view
parent0daa462207c0fdb88c091b07de020d1facc5430d (diff)
downloadvolse-hubzilla-c7644ad29dfdfd237125d3c8815ae62b8457b80a.tar.gz
volse-hubzilla-c7644ad29dfdfd237125d3c8815ae62b8457b80a.tar.bz2
volse-hubzilla-c7644ad29dfdfd237125d3c8815ae62b8457b80a.zip
fix some more wiki issues
(cherry picked from commit d29caa099af2d132978e634a454a29d5c85c23fe)
Diffstat (limited to 'view')
-rw-r--r--view/tpl/wiki.tpl6
1 files changed, 3 insertions, 3 deletions
diff --git a/view/tpl/wiki.tpl b/view/tpl/wiki.tpl
index 0f6fad8e3..979f38903 100644
--- a/view/tpl/wiki.tpl
+++ b/view/tpl/wiki.tpl
@@ -98,8 +98,8 @@
<script>
window.wiki_resource_id = '{{$resource_id}}';
- window.wiki_page_name = '{{$page}}';
- window.wiki_page_content = '{{$content|escape:'javascript'}}';
+ window.wiki_page_name = '{{$page|escape:"javascript"}}';
+ window.wiki_page_content = '{{$content|escape:"javascript"}}';
window.wiki_page_commit = '{{$commit}}';
window.saved = true;
@@ -122,7 +122,7 @@
if (data.success) {
$('#rename-page-form-wrapper').hide();
window.console.log('data: ' + JSON.stringify(data));
- window.wiki_page_name = data.name.urlName;
+ window.wiki_page_name = data.name.htmlName;
$('#wiki-header-page').html(data.name.htmlName);
wiki_refresh_page_list();
} else {