You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

42 lines
1.4 KiB

<div class="comments" id="{$post->nodeid}comments">
{$comments}
<div class="comment">
<a
class="getcomments icon chat"
onclick="{$getcomments} this.innerHTML = '{$c->t('Loading comments ...')}'"
>{$c->t('Get the comments')}</a>
</div>
</div>
<div class="comments">
<div
class="comment"
onclick="
this.parentNode.querySelector('#commentsubmit').style.display = 'table';
this.style.display ='none'">
<a class="addcomment icon chat">{$c->t('Add a comment')}</a>
</div>
<table id="commentsubmit">
<tr>
<td>
<textarea
id="{$post->nodeid}commentcontent"
onkeyup="movim_textarea_autoheight(this);"></textarea>
</td>
</tr>
<tr class="commentsubmitrow">
<td style="width: 100%;"></td>
<td>
<a
onclick="
if(document.getElementById('{$post->nodeid}commentcontent').value != '') {
{$publishcomment}
document.getElementById('{$post->nodeid}commentcontent').value = '';
}"
class="button color green icon yes"
>
{$c->t("Submit")}
</a>
</td>
</tr>
</table>
</div>