fix when quote is last element
This commit is contained in:
parent
aea23e99b6
commit
b1a5911673
@ -17,9 +17,8 @@
|
||||
: '#reply_' + postNum
|
||||
|
||||
var node = this.className
|
||||
// XXX post hover element is added to the quoting post
|
||||
? $root.find('> .files, > .inline').first()
|
||||
: this.nextSibling
|
||||
? $root.find('> .intro')
|
||||
: this
|
||||
|
||||
var link = {
|
||||
node: node,
|
||||
@ -54,7 +53,7 @@
|
||||
"class": 'inline post',
|
||||
id: 'inline_' + link.postNum
|
||||
})
|
||||
$clone.insertBefore(link.node)
|
||||
$clone.insertAfter(link.node)
|
||||
}
|
||||
|
||||
$('head').append(
|
||||
|
Loading…
Reference in New Issue
Block a user