]> git.mxchange.org Git - friendica.git/blobdiff - view/templates/widget_forumlist.tpl
Merge pull request #8112 from annando/build-query
[friendica.git] / view / templates / widget_forumlist.tpl
index 32da71f816633b51fc3d08ad4bfa683238847714..8f049d9b0f136c2646d241349d91b6a62ae2bd19 100644 (file)
@@ -1,5 +1,4 @@
 <script>
-
 function showHideForumlist() {
        if( $("li[id^='forum-widget-entry-extended-']").is(':visible')) {
                $("li[id^='forum-widget-entry-extended-']").hide();
@@ -12,10 +11,13 @@ function showHideForumlist() {
        }
 }
 </script>
-
+<span id="forumlist-sidebar-inflated" class="widget fakelink" onclick="openCloseWidget('forumlist-sidebar', 'forumlist-sidebar-inflated');">
+       <h3>{{$title}}</h3>
+</span>
 <div id="forumlist-sidebar" class="widget">
-       <h3 id="forumlist">{{$title}}</h3>
-
+       <span class="fakelink" onclick="openCloseWidget('forumlist-sidebar', 'forumlist-sidebar-inflated');">
+               <h3 id="forumlist">{{$title}}</h3>
+       </span>
        <ul id="forumlist-sidbar-ul" role="menu">
                {{foreach $forums as $forum}}
                {{if $forum.id <= $visible_forums}}
@@ -44,3 +46,6 @@ function showHideForumlist() {
                {{/if}}
        </ul>
 </div>
+<script>
+initWidget('forumlist-sidebar', 'forumlist-sidebar-inflated');
+</script>