1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-29 04:55:02 +03:00

Обновление прямого эфира при новом комментарии в jquery шаблонах

This commit is contained in:
Mzhelskiy Maxim 2011-08-13 11:02:56 +00:00
parent e7dad1bec7
commit 5b5217b874
2 changed files with 8 additions and 2 deletions

View file

@ -119,7 +119,10 @@ ls.comments = (function ($) {
} else {
var aCmt = result.aComments;
if (aCmt.length > 0 && result.iMaxIdComment) {
$("#comment_last_id").val(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);

View file

@ -120,7 +120,10 @@ ls.comments = (function ($) {
} else {
var aCmt = result.aComments;
if (aCmt.length > 0 && result.iMaxIdComment) {
$("#comment_last_id").val(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);