trace through the threaded conversation spaghetti to bring back a sane looking network page

This commit is contained in:
friendica
2012-11-28 18:45:11 -08:00
parent 7c047bea33
commit 05e08cb5d2
6 changed files with 38 additions and 18 deletions

View File

@@ -302,7 +302,7 @@ function updateConvItems(mode,data) {
if(mode === 'update') {
prev = 'threads-begin';
$('.thread-wrapper',data).each(function() {
$('.thread-wrapper.toplevel_item',data).each(function() {
var ident = $(this).attr('id');
if($('#' + ident).length == 0 && profile_page == 1) {
@@ -331,7 +331,7 @@ function updateConvItems(mode,data) {
}
if(mode === 'append') {
next = 'threads-end';
$('.thread-wrapper',data).each(function() {
$('.thread-wrapper.toplevel_item',data).each(function() {
var ident = $(this).attr('id');
if($('#' + ident).length == 0) {
@@ -359,7 +359,7 @@ function updateConvItems(mode,data) {
prev = 'threads-begin';
$('.thread-wrapper',data).each(function() {
$('.thread-wrapper.toplevel_item',data).each(function() {
var ident = $(this).attr('id');
if($('#' + ident).length == 0 && profile_page == 1) {