From: <lu...@us...> - 2005-05-12 00:44:01
|
Update of /cvsroot/tikiwiki/tiki/templates/styles/moreneat In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29871/templates/styles/moreneat Modified Files: Tag: BRANCH-1-9 tiki-show_page.tpl Log Message: better behaviour when showing/hiding comzone with or without JS Index: tiki-show_page.tpl =================================================================== RCS file: /cvsroot/tikiwiki/tiki/templates/styles/moreneat/tiki-show_page.tpl,v retrieving revision 1.28.2.18 retrieving revision 1.28.2.19 diff -u -d -r1.28.2.18 -r1.28.2.19 --- tiki-show_page.tpl 11 May 2005 19:06:44 -0000 1.28.2.18 +++ tiki-show_page.tpl 12 May 2005 00:43:51 -0000 1.28.2.19 @@ -170,9 +170,9 @@ {if $feature_wiki_comments eq 'y' and $tiki_p_wiki_view_comments eq 'y' and $show_page eq 'y'} <span class="tabbut"> {if $comments_cant > 0} - <a href="#comments" onclick="javascript:flip('comzone{if $comments_show eq 'y'}open{/if}');" class="tablink" style="background: #FFAAAA">{if $comments_cant eq 1}1 {tr}comment{/tr}{else}{$comments_cant} {tr}comments{/tr}{/if}</a></span> + <a href="{if $comments_show ne 'y'}{$comments_complete_father}comzone=show#comments{else}{$comments_complete_father}comzone=hide{/if}" onclick="javascript:flip('comzone{if $comments_show eq 'y'}open{/if}');{if $comments_show eq 'y'} return false;{/if}" class="tablink" style="background: #FFAAAA">{if $comments_cant eq 1}1 {tr}comment{/tr}{else}{$comments_cant} {tr}comments{/tr}{/if}</a></span> {else} - <a href="#comments" onclick="javascript:flip('comzone{if $comments_show eq 'y'}open{/if}');" class="tablink">{tr}comment{/tr}</a></span> + <a href="{if $comments_show ne 'y'}{$comments_complete_father}comzone=show#comments{else}{$comments_complete_father}comzone=hide{/if}" onclick="javascript:flip('comzone{if $comments_show eq 'y'}open{/if}');{if $comments_show eq 'y'} return false;{/if}" class="tablink">{tr}comment{/tr}</a></span> {/if} {/if} {* Attaching a file and viewing attachments are separate permissions! *} |