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:22:50 +07:00
parent c82e0e0b25
commit 20e7f8c1e9
3 changed files with 9 additions and 13 deletions

View file

@ -56,8 +56,4 @@
{else}
{$aLang.comment_was_delete}
{/if}
{if $oUserCurrent}
<div class="comment-preview" id="comment_preview_{$oComment->getId()}" style="display: none;"></div>
<div class="reply" id="reply_{$oComment->getId()}" style="display: none;"></div>
{/if}
</div>

View file

@ -50,7 +50,7 @@
{else}
{if $oUserCurrent}
<div class="reply-area">
<h4 class="reply-header" id="add_comment_root"><a href="#" onclick="ls.comments.toggleCommentForm(0); return false;">{$sNoticeCommentAdd}</a></h4>
<h4 class="reply-header" id="comment_id_0"><a href="#" onclick="ls.comments.toggleCommentForm(0); return false;">{$sNoticeCommentAdd}</a></h4>
{if $oConfig->GetValue('view.tinymce')}
<script type="text/javascript" src="{cfg name='path.root.engine_lib'}/external/tinymce/tiny_mce.js"></script>
@ -111,11 +111,7 @@
</script>
{/if}
<div id="reply_0" class="reply">
{if $oUserCurrent}
<div class="comment-preview" id="comment_preview_0" style="display: none;"><div class="comment-inner"><div class="content"></div></div></div>
{/if}
<div id="reply" class="reply">
<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>

View file

@ -25,7 +25,7 @@
.comments .comment-wrapper { overflow: hidden; zoom: 1; position: relative; }
.comments .comment-wrapper .comment-wrapper { padding-left: 25px; }
.comment-preview { padding: 5px 10px; margin-bottom: 5px; background: #fafafa; overflow: hidden; zoom: 1; }
.comment-preview { padding: 5px 10px; margin-bottom: 10px; background: #eee; overflow: hidden; zoom: 1; }
.comments-header { padding-left: 20px; margin-bottom: 20px; }
.comments-header h3 { font-size: 18px; font-family: Verdana, sans-serif; margin-bottom: 3px; }
.comments-header a.rss { background: url(../images/icons.gif) no-repeat scroll -70px -247px transparent; margin-right: 20px; padding-left: 14px; }
@ -83,9 +83,13 @@
/* Reply Form */
.reply-area { padding-left: 20px; }
.reply-header { margin-bottom: 10px; }
.reply { padding-bottom: 10px; padding-top: 10px; }
.reply { padding-bottom: 15px; }
.reply .markItUp { width: 98%; }
.reply .markItUpHeader { width: 98%; }
.reply textarea { height: 100px; width: 98%; }
.reply textarea.loader { background: #f7f7f7 url(../images/loader.gif) no-repeat center;}
.reply textarea.loader { background: #f7f7f7 url(../images/loader.gif) no-repeat center;}
.comment-preview,
.comments .reply { margin-left: 20px; }