1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-05-27 05:08:11 +03:00

fix comment

This commit is contained in:
Mzhelskiy Maxim 2011-08-29 07:11:02 +00:00
parent b9fca12633
commit e93c02ced7
2 changed files with 2 additions and 0 deletions

View file

@ -127,6 +127,7 @@ ls.comments = (function ($) {
var aCmt = result.aComments;
if (aCmt.length > 0 && result.iMaxIdComment) {
$("#comment_last_id").val(result.iMaxIdComment);
$('#count-comments').text(parseInt($('#count-comments').text())+aCmt.length);
if ($('#block_stream_item_comment').length && ls.blocks) {
ls.blocks.load($('#block_stream_item_comment'), 'block_stream');
}

View file

@ -127,6 +127,7 @@ ls.comments = (function ($) {
var aCmt = result.aComments;
if (aCmt.length > 0 && result.iMaxIdComment) {
$("#comment_last_id").val(result.iMaxIdComment);
$('#count-comments').text(parseInt($('#count-comments').text())+aCmt.length);
if ($('#block_stream_item_comment').length && ls.blocks) {
ls.blocks.load($('#block_stream_item_comment'), 'block_stream');
}