fix cross-thread inlining
This commit is contained in:
parent
274ac0965a
commit
67d3449998
@ -8,8 +8,8 @@
|
||||
if ($clone.length)
|
||||
return $clone.remove()
|
||||
|
||||
var OP = $('input[name="thread"]').val()
|
||||
var selector = postNum === OP
|
||||
var postOP = this.pathname.match(/(\d+).html/)[1]
|
||||
var selector = postNum === postOP
|
||||
? '.op .body'
|
||||
: '#reply_' + postNum + ' .body'
|
||||
|
||||
@ -17,9 +17,12 @@
|
||||
postNum: postNum,
|
||||
node: this
|
||||
}
|
||||
|
||||
var OP = $('input[name="thread"]').val()
|
||||
if (OP === postOP) {
|
||||
var $target = $(selector)
|
||||
if ($target.length)
|
||||
add(link, $target)
|
||||
}
|
||||
else
|
||||
$.get(this.pathname, function(data) {
|
||||
var $target = $(data).find(selector)
|
||||
|
Loading…
Reference in New Issue
Block a user