aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorM.Dent <dentm42@dm42.net>2018-10-08 13:22:39 -0400
committerM.Dent <dentm42@dm42.net>2018-10-08 13:35:18 -0400
commit709665846e66f093109730691b31d9e094d02088 (patch)
tree40d17410f9f69751aa4a3d0a382d94bd76d583ba /view
parent93a310582f044d35f0a3583671053595fefdbedb (diff)
downloadvolse-hubzilla-709665846e66f093109730691b31d9e094d02088.tar.gz
volse-hubzilla-709665846e66f093109730691b31d9e094d02088.tar.bz2
volse-hubzilla-709665846e66f093109730691b31d9e094d02088.zip
Rework Wiki encoding scheme.
Diffstat (limited to 'view')
-rw-r--r--view/tpl/wiki.tpl3
-rw-r--r--view/tpl/wiki_page_not_found.tpl2
2 files changed, 3 insertions, 2 deletions
diff --git a/view/tpl/wiki.tpl b/view/tpl/wiki.tpl
index 2aabc7b5f..0f6fad8e3 100644
--- a/view/tpl/wiki.tpl
+++ b/view/tpl/wiki.tpl
@@ -262,7 +262,8 @@
if (data.success) {
window.saved = true;
window.console.log('Page saved successfully.');
- window.wiki_page_content = currentContent;
+ //window.wiki_page_content = currentContent;
+ window.wiki_page_content = data.content;
$('#id_commitMsg').val(''); // Clear the commit message box
$('#save-page').addClass('disabled'); // Disable the save button
{{if !$mimeType || $mimeType == 'text/markdown'}}
diff --git a/view/tpl/wiki_page_not_found.tpl b/view/tpl/wiki_page_not_found.tpl
index de98efdf8..bc8afeb53 100644
--- a/view/tpl/wiki_page_not_found.tpl
+++ b/view/tpl/wiki_page_not_found.tpl
@@ -1,7 +1,7 @@
<h3>Page does not exist</h3>
<br /><br /><br />
{{if $canadd}}
- <form id="new-page-form" action="wiki/{{$channel_address}}/create/page" method="post" >
+ <form id="new-page-form" action="/wiki/{{$channel_address}}/create/page" method="post" >
<input type="hidden" name="resource_id" value="{{$resource_id}}">
{{include file="field_input.tpl" field=$pageName}}
{{if $typelock}}