From d8774cda8ed0bec9dbbe8638fd7af5307d569805 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Mon, 28 Nov 2016 11:54:36 +0100 Subject: minor cleanup and remove more double encoding --- Zotlabs/Module/Wiki.php | 2 +- view/tpl/wiki.tpl | 8 -------- view/tpl/wiki_page_list.tpl | 19 ++++++++++--------- 3 files changed, 11 insertions(+), 18 deletions(-) diff --git a/Zotlabs/Module/Wiki.php b/Zotlabs/Module/Wiki.php index 8069afc7c..37ebe2a38 100644 --- a/Zotlabs/Module/Wiki.php +++ b/Zotlabs/Module/Wiki.php @@ -390,7 +390,7 @@ class Wiki extends \Zotlabs\Web\Controller { 'files' => array($page['page']['urlName'].'.md') )); if($commit['success']) { - json_return_and_die(array('url' => '/'.argv(0).'/'.argv(1).'/'.$page['wiki']['urlName'].'/'.urlencode($page['page']['urlName']), 'success' => true)); + json_return_and_die(array('url' => '/'.argv(0).'/'.argv(1).'/'.$page['wiki']['urlName'].'/'.$page['page']['urlName'], 'success' => true)); } else { json_return_and_die(array('message' => 'Error making git commit','url' => '/'.argv(0).'/'.argv(1).'/'.$page['wiki']['urlName'].'/'.urlencode($page['page']['urlName']),'success' => false)); } diff --git a/view/tpl/wiki.tpl b/view/tpl/wiki.tpl index 6025ded27..bdce4f4be 100644 --- a/view/tpl/wiki.tpl +++ b/view/tpl/wiki.tpl @@ -379,14 +379,6 @@ 'json'); }; - function wiki_show_new_page_form() { - $('div[id^=\'edit-wiki-form-wrapper\']').hide(); - $('#edit-wiki-form-wrapper').hide(); - $('#new-wiki-form-wrapper').hide(); - $('#new-page-form-wrapper').toggle(); - return false; - } - function wiki_show_edit_wiki_form(wiki_title, wiki_resource_id) { window.wiki_resource_id = wiki_resource_id; window.wiki_title = wiki_title; diff --git a/view/tpl/wiki_page_list.tpl b/view/tpl/wiki_page_list.tpl index bd6d2d759..ef2b41490 100644 --- a/view/tpl/wiki_page_list.tpl +++ b/view/tpl/wiki_page_list.tpl @@ -29,17 +29,12 @@ -- cgit v1.2.3