1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-02 22:45:02 +03:00

Исправлен счетчик избранного в комментариях [new-jquery]

This commit is contained in:
Denis Shakhov 2012-03-08 02:38:55 +07:00
parent bf9fb356c3
commit ab830d0836

View file

@ -43,7 +43,10 @@
{/if}
<li class="goto-comment-child"><a href="#" title="{$aLang.comment_goto_child}">↓</a></li>
{if $oUserCurrent and !$bNoCommentFavourites}
<li><a href="#" onclick="return ls.favourite.toggle({$oComment->getId()},this,'comment');" class="favourite {if $oComment->getIsFavourite()}active{/if}"><span class="favourite-count" id="fav_count_comment_{$oComment->getId()}">{if $oComment->getCountFavourite()>0}{$oComment->getCountFavourite()}{else}&nbsp;{/if}</span></a></li>
<li>
<a href="#" onclick="return ls.favourite.toggle({$oComment->getId()},this,'comment');" class="favourite {if $oComment->getIsFavourite()}active{/if}"></a>
<span class="favourite-count" id="fav_count_comment_{$oComment->getId()}">{if $oComment->getCountFavourite()>0}{$oComment->getCountFavourite()}{/if}</span>
</li>
{/if}
{if !$oComment->getDelete() and $oUserCurrent and $oUserCurrent->isAdministrator()}
<li><a href="#" class="delete" onclick="ls.comments.toggle(this,{$oComment->getId()}); return false;">{$aLang.comment_delete}</a></li>