front page fixes
This commit is contained in:
parent
9ea5ff610e
commit
3c98319e52
11
js/inline.js
11
js/inline.js
@ -25,13 +25,15 @@
|
|||||||
postNum: postNum
|
postNum: postNum
|
||||||
}
|
}
|
||||||
|
|
||||||
var OP = $('input[name="thread"]').val()
|
var srcOP = $root.closest('[id^=thread]').attr('id').match(/\d+/)[0]
|
||||||
if (OP === postOP) {
|
if (srcOP === postOP) {
|
||||||
// XXX post hover adds fetched threads to the DOM
|
// XXX post hover adds fetched threads to the DOM
|
||||||
selector = '#thread_' + OP + ' ' + selector
|
selector = '#thread_' + srcOP + ' ' + selector
|
||||||
// XXX bypass the `(OP)` text
|
// XXX bypass the `(OP)` text
|
||||||
link.node = link.node.next()
|
link.node = link.node.next()
|
||||||
|
|
||||||
var $target = $(selector)
|
var $target = $(selector)
|
||||||
|
if ($target.length)
|
||||||
return add(link, $target)
|
return add(link, $target)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -53,7 +55,8 @@
|
|||||||
var $clone = $target.clone(true)
|
var $clone = $target.clone(true)
|
||||||
$clone.attr({
|
$clone.attr({
|
||||||
"class": 'inline post',
|
"class": 'inline post',
|
||||||
id: 'inline_' + link.postNum
|
id: 'inline_' + link.postNum,
|
||||||
|
style: null// XXX remove post hover styling
|
||||||
})
|
})
|
||||||
$clone.insertAfter(link.node)
|
$clone.insertAfter(link.node)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user