mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-01 14:05:07 +03:00
Обновление прямого эфира при новом комментарии в jquery шаблонах
This commit is contained in:
parent
e7dad1bec7
commit
5b5217b874
|
@ -120,6 +120,9 @@ ls.comments = (function ($) {
|
|||
var aCmt = result.aComments;
|
||||
if (aCmt.length > 0 && result.iMaxIdComment) {
|
||||
$("#comment_last_id").val(result.iMaxIdComment);
|
||||
if ($('#block_stream_item_comment').length && ls.blocks) {
|
||||
ls.blocks.load($('#block_stream_item_comment'), 'block_stream');
|
||||
}
|
||||
}
|
||||
if (selfIdComment) {
|
||||
this.toggleCommentForm(0, true);
|
||||
|
|
|
@ -121,6 +121,9 @@ ls.comments = (function ($) {
|
|||
var aCmt = result.aComments;
|
||||
if (aCmt.length > 0 && result.iMaxIdComment) {
|
||||
$("#comment_last_id").val(result.iMaxIdComment);
|
||||
if ($('#block_stream_item_comment').length && ls.blocks) {
|
||||
ls.blocks.load($('#block_stream_item_comment'), 'block_stream');
|
||||
}
|
||||
}
|
||||
if (selfIdComment) {
|
||||
this.toggleCommentForm(0, true);
|
||||
|
|
Loading…
Reference in a new issue