1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-05 07:54:24 +03:00

Merge pull request #45 from 1d10t/master

comment form hooks / jquery templates
This commit is contained in:
Mzhelskiy Maxim 2011-11-21 19:52:37 -08:00
commit c5519e3bba
2 changed files with 4 additions and 0 deletions

View file

@ -98,7 +98,9 @@
<div class="comment" id="comment_preview_0" style="display: none;"><div class="comment-inner"><div class="content"></div></div></div>
{/if}
<form action="" method="POST" id="form_comment" onsubmit="return false;" enctype="multipart/form-data">
{hook run='form_add_comment_begin'}
<textarea name="comment_text" id="form_comment_text" class="input-wide"></textarea>
{hook run='form_add_comment_end'}
<input type="button" value="{$aLang.comment_preview}" onclick="ls.comments.preview();" />
<input type="submit" name="submit_comment" value="{$aLang.comment_add}" id="comment-button-submit" onclick="ls.comments.add('form_comment',{$iTargetId},'{$sTargetType}'); return false;" />
<input type="hidden" name="reply" value="0" id="form_comment_reply" />

View file

@ -115,7 +115,9 @@
{/if}
<form action="#" method="POST" id="form_comment" onsubmit="return false;" enctype="multipart/form-data">
{hook run='form_add_comment_begin'}
<textarea name="comment_text" id="form_comment_text" class="input-wide"></textarea>
{hook run='form_add_comment_end'}
<input type="button" value="{$aLang.comment_preview}" onclick="ls.comments.preview();" />
<input type="submit" name="submit_comment" value="{$aLang.comment_add}" id="comment-button-submit" onclick="ls.comments.add('form_comment',{$iTargetId},'{$sTargetType}'); return false;" />
<input type="hidden" name="reply" value="0" id="form_comment_reply" />