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