update comment count as new comments come in
This commit is contained in:
parent
a41b4c6e67
commit
8f547283c0
1 changed files with 12 additions and 8 deletions
|
@ -113,6 +113,12 @@
|
||||||
|
|
||||||
$.get(update_url,function(data) {
|
$.get(update_url,function(data) {
|
||||||
in_progress = false;
|
in_progress = false;
|
||||||
|
$('.ccollapse-wrapper',data).each(function() {
|
||||||
|
var ident = $(this).attr('id');
|
||||||
|
if($('#' + ident).length) {
|
||||||
|
$('#' + ident).replaceWith($(this));
|
||||||
|
}
|
||||||
|
});
|
||||||
$('.wall-item-outside-wrapper',data).each(function() {
|
$('.wall-item-outside-wrapper',data).each(function() {
|
||||||
var ident = $(this).attr('id');
|
var ident = $(this).attr('id');
|
||||||
if($('#' + ident).length == 0) {
|
if($('#' + ident).length == 0) {
|
||||||
|
@ -130,8 +136,6 @@
|
||||||
$('#' + ident + ' ' + '.my-comment-photo').each(function() {
|
$('#' + ident + ' ' + '.my-comment-photo').each(function() {
|
||||||
$(this).attr('src',$(this).attr('dst'));
|
$(this).attr('src',$(this).attr('dst'));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
prev = ident;
|
prev = ident;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue