mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-24 23:50:11 +01:00
better op selector, don't attach to links
This commit is contained in:
parent
bbc4169eaa
commit
53cc67ba2d
11
js/inline.js
11
js/inline.js
@ -28,16 +28,12 @@
|
||||
}
|
||||
|
||||
var selector = targetNum === targetOP
|
||||
? '.op .body'
|
||||
? '#op_' + srcOP
|
||||
: '#reply_' + targetNum
|
||||
|
||||
if (srcOP === targetOP) {
|
||||
// XXX post hover adds fetched threads to the DOM
|
||||
selector = '#thread_' + srcOP + ' ' + selector
|
||||
|
||||
// bypass `(OP)`
|
||||
if (targetNum === targetOP)
|
||||
link.node = link.node.next()
|
||||
link.node = link.node.next()// bypass `(OP)`
|
||||
|
||||
var $target = $(selector)
|
||||
if ($target.length)
|
||||
@ -78,7 +74,8 @@
|
||||
'}' +
|
||||
'</style>')
|
||||
|
||||
$('.body a, .mentioned a')
|
||||
// don't attach to outbound links
|
||||
$('.body a:not([rel]), .mentioned a')
|
||||
.attr('onclick', null)// XXX disable highlightReply
|
||||
.click(inline)
|
||||
})()
|
||||
|
Loading…
Reference in New Issue
Block a user