|
|
@ -30,14 +30,17 @@ function requestRepliedBefore(postLi) |
|
|
|
|
|
|
|
|
|
|
|
if( reply_n != undefined && reply_k != undefined ) { |
|
|
|
if( reply_n != undefined && reply_k != undefined ) { |
|
|
|
dhtget( reply_n, "post" + reply_k, "s", |
|
|
|
dhtget( reply_n, "post" + reply_k, "s", |
|
|
|
function(postLi, postFromJson) { |
|
|
|
function(postLi, postFromJson) { |
|
|
|
var newStreamPost = postToElem(postFromJson, "related"); |
|
|
|
if (postFromJson) { |
|
|
|
newStreamPost.hide(); |
|
|
|
postLi.find('textarea').textcomplete('destroy'); // FIXME maybe we need to reset position instead (but curently it's cheaper)
|
|
|
|
postLi.before(newStreamPost); |
|
|
|
var newStreamPost = postToElem(postFromJson, "related"); |
|
|
|
newStreamPost.slideDown("fast"); |
|
|
|
newStreamPost.hide(); |
|
|
|
$.MAL.relatedPostLoaded(); |
|
|
|
postLi.before(newStreamPost); |
|
|
|
requestRepliedBefore(newStreamPost); |
|
|
|
newStreamPost.slideDown("fast"); |
|
|
|
}, postLi); |
|
|
|
$.MAL.relatedPostLoaded(); |
|
|
|
|
|
|
|
requestRepliedBefore(newStreamPost); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, postLi); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -150,7 +153,7 @@ var profilePostsLoading = false; |
|
|
|
|
|
|
|
|
|
|
|
function requestPost(containerToAppend,username,resource,cbFunc,cbArgs){ |
|
|
|
function requestPost(containerToAppend,username,resource,cbFunc,cbArgs){ |
|
|
|
|
|
|
|
|
|
|
|
console.log('dhtget '+username+' '+resource); |
|
|
|
//console.log('dhtget '+username+' '+resource);
|
|
|
|
|
|
|
|
|
|
|
|
dhtget( username, resource, "s", |
|
|
|
dhtget( username, resource, "s", |
|
|
|
function(args, postFromJson) { |
|
|
|
function(args, postFromJson) { |
|
|
|