aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorAndrew Manning <tamanning@zoho.com>2016-05-28 07:42:18 -0400
committerAndrew Manning <tamanning@zoho.com>2016-05-28 07:42:18 -0400
commitae94e8a855d31125b96e158c0fb8c0d6f22631d6 (patch)
tree0bb82a3d3c885356dae690fc991b17a758fc96e6 /view
parentf884fa66782544cd6fc44a81b978a905d4755cea (diff)
downloadvolse-hubzilla-ae94e8a855d31125b96e158c0fb8c0d6f22631d6.tar.gz
volse-hubzilla-ae94e8a855d31125b96e158c0fb8c0d6f22631d6.tar.bz2
volse-hubzilla-ae94e8a855d31125b96e158c0fb8c0d6f22631d6.zip
Wiki page list links work. File content is not yet loaded into the editor. Removed some logger calls.
Diffstat (limited to 'view')
-rw-r--r--view/tpl/wiki.tpl4
-rw-r--r--view/tpl/wiki_page_list.tpl7
2 files changed, 6 insertions, 5 deletions
diff --git a/view/tpl/wiki.tpl b/view/tpl/wiki.tpl
index 27887cc1c..a18831aa5 100644
--- a/view/tpl/wiki.tpl
+++ b/view/tpl/wiki.tpl
@@ -139,8 +139,8 @@ function wiki_delete_wiki(wikiName, resource_id) {
}
$.post("wiki/{{$channel}}/get/page/list/", {resource_id: window.wiki_resource_id}, function (data) {
if (data.success) {
- $('#wiki_page_list').html(data.pages);
- $('#wiki_page_list').show();
+ $('#wiki_page_list_container').html(data.pages);
+ $('#wiki_page_list_container').show();
} else {
alert('Error fetching page list!');
window.console.log('Error fetching page list!');
diff --git a/view/tpl/wiki_page_list.tpl b/view/tpl/wiki_page_list.tpl
index 0ced893c3..c941e4a08 100644
--- a/view/tpl/wiki_page_list.tpl
+++ b/view/tpl/wiki_page_list.tpl
@@ -1,9 +1,10 @@
-<div id="wiki_page_list" class="widget" {{if $hide}} style="display: none;" {{/if}}>
+{{if $not_refresh}}<div id="wiki_page_list_container" {{if $hide}} style="display: none;" {{/if}}>{{/if}}
+<div id="wiki_page_list" class="widget" >
<h3>{{$header}}</h3>
<ul class="nav nav-pills nav-stacked">
{{foreach $pages as $page}}
- <li><a href="">{{$page}}</a></li>
+ <li><a href="/wiki/{{$channel}}/{{$wikiname}}/{{$page}}">{{$page}}</a></li>
{{/foreach}}
</ul>
</div>
-
+{{if $not_refresh}}</div>{{/if}}