diff options
Diffstat (limited to 'view/tpl')
-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 { |