aboutsummaryrefslogtreecommitdiffstats
path: root/js/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/main.js')
-rw-r--r--js/main.js23
1 files changed, 15 insertions, 8 deletions
diff --git a/js/main.js b/js/main.js
index 65d05e58a..96c7fa642 100644
--- a/js/main.js
+++ b/js/main.js
@@ -241,27 +241,34 @@
$('.tread-wrapper',data).each(function() {
var ident = $(this).attr('id');
+
if($('#' + ident).length == 0 && profile_page == 1) {
$('img',this).each(function() {
$(this).attr('src',$(this).attr('dst'));
});
$('#' + prev).after($(this));
}
+ else {
+ $('img',this).each(function() {
+ $(this).attr('src',$(this).attr('dst'));
+ });
+ $('#' + ident).replaceWith($(this));
+ }
prev = ident;
});
// reset vars for inserting individual items
- prev = 'live-' + src;
+ /* prev = 'live-' + src;
$('.wall-item-outside-wrapper',data).each(function() {
var ident = $(this).attr('id');
- // If not on page 1, only add new conversation items to existing conversations on this page
- if($('#' + ident).length == 0 && (profile_page == 1 || prev != 'live-' + src)) {
- $('img',this).each(function() {
- $(this).attr('src',$(this).attr('dst'));
- });
- $('#' + prev).after($(this));
+
+ if($('#' + ident).length == 0 && prev != 'live-' + src) {
+ $('img',this).each(function() {
+ $(this).attr('src',$(this).attr('dst'));
+ });
+ $('#' + prev).after($(this));
}
else {
$('#' + ident + ' ' + '.wall-item-ago').replaceWith($(this).find('.wall-item-ago'));
@@ -276,7 +283,7 @@
}
prev = ident;
});
-
+ */
$('.like-rotator').hide();
if(commentBusy) {
commentBusy = false;