simplify live update
This commit is contained in:
parent
9768adf719
commit
001e402311
1 changed files with 9 additions and 2 deletions
11
js/main.js
11
js/main.js
|
@ -241,18 +241,25 @@
|
||||||
|
|
||||||
$('.tread-wrapper',data).each(function() {
|
$('.tread-wrapper',data).each(function() {
|
||||||
var ident = $(this).attr('id');
|
var ident = $(this).attr('id');
|
||||||
|
|
||||||
if($('#' + ident).length == 0 && profile_page == 1) {
|
if($('#' + ident).length == 0 && profile_page == 1) {
|
||||||
$('img',this).each(function() {
|
$('img',this).each(function() {
|
||||||
$(this).attr('src',$(this).attr('dst'));
|
$(this).attr('src',$(this).attr('dst'));
|
||||||
});
|
});
|
||||||
$('#' + prev).after($(this));
|
$('#' + prev).after($(this));
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
$('img',this).each(function() {
|
||||||
|
$(this).attr('src',$(this).attr('dst'));
|
||||||
|
});
|
||||||
|
$('#' + ident).replaceWith($(this));
|
||||||
|
}
|
||||||
prev = ident;
|
prev = ident;
|
||||||
});
|
});
|
||||||
|
|
||||||
// reset vars for inserting individual items
|
// reset vars for inserting individual items
|
||||||
|
|
||||||
prev = 'live-' + src;
|
/* prev = 'live-' + src;
|
||||||
|
|
||||||
$('.wall-item-outside-wrapper',data).each(function() {
|
$('.wall-item-outside-wrapper',data).each(function() {
|
||||||
var ident = $(this).attr('id');
|
var ident = $(this).attr('id');
|
||||||
|
@ -276,7 +283,7 @@
|
||||||
}
|
}
|
||||||
prev = ident;
|
prev = ident;
|
||||||
});
|
});
|
||||||
|
*/
|
||||||
$('.like-rotator').hide();
|
$('.like-rotator').hide();
|
||||||
if(commentBusy) {
|
if(commentBusy) {
|
||||||
commentBusy = false;
|
commentBusy = false;
|
||||||
|
|
Loading…
Reference in a new issue