aboutsummaryrefslogtreecommitdiffstats
path: root/js/main.js
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2011-12-14 17:23:41 -0800
committerfriendica <info@friendica.com>2011-12-14 17:23:41 -0800
commit001e4023117b23c90a791eedd5c8026c48f45667 (patch)
tree7feb178f9ff11c7ad25171ed7e350375dd5d5e46 /js/main.js
parent9768adf719dffc59c1f2c7f0d4b2b932fcf9b142 (diff)
downloadvolse-hubzilla-001e4023117b23c90a791eedd5c8026c48f45667.tar.gz
volse-hubzilla-001e4023117b23c90a791eedd5c8026c48f45667.tar.bz2
volse-hubzilla-001e4023117b23c90a791eedd5c8026c48f45667.zip
simplify live update
Diffstat (limited to 'js/main.js')
-rw-r--r--js/main.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/js/main.js b/js/main.js
index 2c8a8fad1..96c7fa642 100644
--- a/js/main.js
+++ b/js/main.js
@@ -241,18 +241,25 @@
$('.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');
@@ -276,7 +283,7 @@
}
prev = ident;
});
-
+ */
$('.like-rotator').hide();
if(commentBusy) {
commentBusy = false;