1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-01-19 09:27:24 +01:00

front page fixes

This commit is contained in:
James Campos 2014-10-03 13:28:52 -07:00
parent a38fa1bf75
commit 09684c5450

View File

@ -25,13 +25,15 @@
postNum: postNum
}
var OP = $('input[name="thread"]').val()
if (OP === postOP) {
var srcOP = $root.closest('[id^=thread]').attr('id').match(/\d+/)[0]
if (srcOP === postOP) {
// XXX post hover adds fetched threads to the DOM
selector = '#thread_' + OP + ' ' + selector
selector = '#thread_' + srcOP + ' ' + selector
// XXX bypass the `(OP)` text
link.node = link.node.next()
var $target = $(selector)
if ($target.length)
return add(link, $target)
}
@ -53,7 +55,8 @@
var $clone = $target.clone(true)
$clone.attr({
"class": 'inline post',
id: 'inline_' + link.postNum
id: 'inline_' + link.postNum,
style: null// XXX remove post hover styling
})
$clone.insertAfter(link.node)
}