|
|
@ -31,12 +31,15 @@ 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) { |
|
|
|
|
|
|
|
if (postFromJson) { |
|
|
|
|
|
|
|
postLi.find('textarea').textcomplete('destroy'); // FIXME maybe we need to reset position instead (but curently it's cheaper)
|
|
|
|
var newStreamPost = postToElem(postFromJson, "related"); |
|
|
|
var newStreamPost = postToElem(postFromJson, "related"); |
|
|
|
newStreamPost.hide(); |
|
|
|
newStreamPost.hide(); |
|
|
|
postLi.before(newStreamPost); |
|
|
|
postLi.before(newStreamPost); |
|
|
|
newStreamPost.slideDown("fast"); |
|
|
|
newStreamPost.slideDown("fast"); |
|
|
|
$.MAL.relatedPostLoaded(); |
|
|
|
$.MAL.relatedPostLoaded(); |
|
|
|
requestRepliedBefore(newStreamPost); |
|
|
|
requestRepliedBefore(newStreamPost); |
|
|
|
|
|
|
|
} |
|
|
|
}, postLi); |
|
|
|
}, 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) { |
|
|
|