mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-18 06:14:26 +03:00
Merge pull request #45 from 1d10t/master
comment form hooks / jquery templates
This commit is contained in:
commit
c5519e3bba
|
@ -98,7 +98,9 @@
|
||||||
<div class="comment" id="comment_preview_0" style="display: none;"><div class="comment-inner"><div class="content"></div></div></div>
|
<div class="comment" id="comment_preview_0" style="display: none;"><div class="comment-inner"><div class="content"></div></div></div>
|
||||||
{/if}
|
{/if}
|
||||||
<form action="" method="POST" id="form_comment" onsubmit="return false;" enctype="multipart/form-data">
|
<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>
|
<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="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="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" />
|
<input type="hidden" name="reply" value="0" id="form_comment_reply" />
|
||||||
|
|
|
@ -115,7 +115,9 @@
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<form action="#" method="POST" id="form_comment" onsubmit="return false;" enctype="multipart/form-data">
|
<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>
|
<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="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="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" />
|
<input type="hidden" name="reply" value="0" id="form_comment_reply" />
|
||||||
|
|
Loading…
Reference in a new issue