mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-01 05:55:02 +03:00
fix update-comments button
This commit is contained in:
parent
aef80cc106
commit
f20fe67a77
|
@ -1,6 +1,6 @@
|
|||
{if $oUserCurrent}
|
||||
<div class="update" id="update" style="{if $aPagingCmt and $aPagingCmt.iCountPage>1}display:none;{/if}">
|
||||
<div class="refresh"><img class="update-comments" id="update-comments" alt="" src="{cfg name='path.static.skin'}/images/update.gif" onclick="ls.comments.load({$iTargetId},'{$sTargetType}'); return false;"/></div>
|
||||
<div class="update-comments" id="update-comments" onclick="ls.comments.load({$iTargetId},'{$sTargetType}'); return false;"></div>
|
||||
<div class="new-comments" id="new_comments_counter" style="display: none;" onclick="ls.comments.goToNextComment();"></div>
|
||||
<input type="hidden" id="comment_last_id" value="{$iMaxIdComment}" />
|
||||
<input type="hidden" id="comment_use_paging" value="{if $aPagingCmt and $aPagingCmt.iCountPage>1}1{/if}" />
|
||||
|
|
|
@ -1,15 +1,11 @@
|
|||
/* --------------------------------------------------------------
|
||||
!UPDATE
|
||||
-------------------------------------------------------------- */
|
||||
.update { padding: 7px 7px 5px 7px; float: right; position: fixed; top: 220px; right: 0; text-align: center; background: #fafafa; border-top: 1px solid #eee; border-bottom: 1px solid #ddd; border-left: 1px solid #ddd; _position: absolute; _top: expression( eval(document.documentElement.scrollTop) + 220 +"px" ); }
|
||||
.update .update-comments { cursor: pointer; vertical-align: top; }
|
||||
/* Update button */
|
||||
.update { padding: 7px 7px 6px 7px; float: right; position: fixed; top: 220px; right: 0; text-align: center; background: #fafafa; border-top: 1px solid #eee; border-bottom: 1px solid #ddd; border-left: 1px solid #ddd; _position: absolute; _top: expression( eval(document.documentElement.scrollTop) + 220 +"px" ); }
|
||||
.update .update-comments { width: 16px; height: 16px; cursor: pointer; background: url(../images/update.gif) no-repeat; }
|
||||
.update .update-comments.active { background: url(../images/update_act.gif) no-repeat; }
|
||||
.update .new-comments { border-top: 1px solid #ececed; color: #333; padding-top: 7px; margin-top: 3px; cursor: pointer; }
|
||||
|
||||
|
||||
|
||||
/* --------------------------------------------------------------
|
||||
!COMMENTS
|
||||
-------------------------------------------------------------- */
|
||||
/* Comments */
|
||||
.comments { margin-bottom: 10px; }
|
||||
.comments .comment-wrapper { overflow: hidden; zoom: 1; position: relative; }
|
||||
.comments .comment-wrapper .comment-wrapper { padding-left: 25px; }
|
||||
|
|
|
@ -100,7 +100,7 @@ ls.comments = (function ($) {
|
|||
}
|
||||
|
||||
objImg = $('#update-comments');
|
||||
objImg.attr('src', DIR_STATIC_SKIN+'/images/update_act.gif');
|
||||
objImg.addClass('active');
|
||||
|
||||
var params = { idCommentLast: idCommentLast, idTarget: idTarget, typeTarget: typeTarget };
|
||||
if (selfIdComment) {
|
||||
|
@ -111,7 +111,7 @@ ls.comments = (function ($) {
|
|||
}
|
||||
|
||||
ls.ajax(this.options.type[typeTarget].url_response, params, function(result) {
|
||||
objImg.attr('src', DIR_STATIC_SKIN+'/images/update.gif');
|
||||
objImg.removeClass('active');
|
||||
|
||||
if (!result) { ls.msg.error('Error','Please try again later'); }
|
||||
if (result.bStateError) {
|
||||
|
|
Loading…
Reference in a new issue