From 344c293424716cc53eed2fea9eb3a7512e725516 Mon Sep 17 00:00:00 2001 From: Andrew Manning Date: Sat, 4 Jun 2016 15:12:04 -0400 Subject: Wiki and page filenames are abstracted from their displayed names. Special characters do not seem to break things. --- view/tpl/wiki.tpl | 4 ++-- view/tpl/wiki_page_list.tpl | 2 +- view/tpl/wikilist.tpl | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'view/tpl') diff --git a/view/tpl/wiki.tpl b/view/tpl/wiki.tpl index 86c503bb3..384dc796d 100644 --- a/view/tpl/wiki.tpl +++ b/view/tpl/wiki.tpl @@ -139,8 +139,8 @@ ev.preventDefault(); }); -function wiki_delete_wiki(wikiName, resource_id) { - if(!confirm('Are you sure you want to delete the entire wiki: ' + JSON.stringify(wikiName))) { +function wiki_delete_wiki(wikiHtmlName, resource_id) { + if(!confirm('Are you sure you want to delete the entire wiki: ' + JSON.stringify(wikiHtmlName))) { return; } $.post("wiki/{{$channel}}/delete/wiki", {resource_id: resource_id}, function (data) { diff --git a/view/tpl/wiki_page_list.tpl b/view/tpl/wiki_page_list.tpl index c941e4a08..1c3254465 100644 --- a/view/tpl/wiki_page_list.tpl +++ b/view/tpl/wiki_page_list.tpl @@ -3,7 +3,7 @@

{{$header}}

diff --git a/view/tpl/wikilist.tpl b/view/tpl/wikilist.tpl index 91ac1a7b3..be353ca5e 100644 --- a/view/tpl/wikilist.tpl +++ b/view/tpl/wikilist.tpl @@ -7,7 +7,7 @@ {{$wiki.title}}