mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-17 15:20:51 +03:00
fix comment
This commit is contained in:
parent
b9fca12633
commit
e93c02ced7
|
@ -127,6 +127,7 @@ ls.comments = (function ($) {
|
||||||
var aCmt = result.aComments;
|
var aCmt = result.aComments;
|
||||||
if (aCmt.length > 0 && result.iMaxIdComment) {
|
if (aCmt.length > 0 && result.iMaxIdComment) {
|
||||||
$("#comment_last_id").val(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) {
|
if ($('#block_stream_item_comment').length && ls.blocks) {
|
||||||
ls.blocks.load($('#block_stream_item_comment'), 'block_stream');
|
ls.blocks.load($('#block_stream_item_comment'), 'block_stream');
|
||||||
}
|
}
|
||||||
|
|
|
@ -127,6 +127,7 @@ ls.comments = (function ($) {
|
||||||
var aCmt = result.aComments;
|
var aCmt = result.aComments;
|
||||||
if (aCmt.length > 0 && result.iMaxIdComment) {
|
if (aCmt.length > 0 && result.iMaxIdComment) {
|
||||||
$("#comment_last_id").val(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) {
|
if ($('#block_stream_item_comment').length && ls.blocks) {
|
||||||
ls.blocks.load($('#block_stream_item_comment'), 'block_stream');
|
ls.blocks.load($('#block_stream_item_comment'), 'block_stream');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue