diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-10-10 08:39:28 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2018-10-10 11:06:39 +0200 |
commit | c7644ad29dfdfd237125d3c8815ae62b8457b80a (patch) | |
tree | 5d2caddd4abb374897c9e3a0a138f795b8d75e56 /view | |
parent | 0daa462207c0fdb88c091b07de020d1facc5430d (diff) | |
download | volse-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.tpl | 6 |
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 { |