diff options
Diffstat (limited to 'view/tpl')
-rw-r--r-- | view/tpl/wiki.tpl | 4 | ||||
-rw-r--r-- | view/tpl/wiki_page_list.tpl | 7 |
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}} |