diff options
| author | James Campos <james.r.campos@gmail.com> | 2014-10-05 07:19:14 -0700 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2014-10-07 03:27:36 +0200 |
| commit | daa30a12de74764d9944e53bf63ce9a7dda5860d (patch) | |
| tree | 82d5a856e935da6338629ad3ff07c91fce83f5e7 /js | |
| parent | 262f525e75a74909b41e2fe6b10072b1af1feb72 (diff) | |
better op selector, don't attach to links
Diffstat (limited to 'js')
| -rw-r--r-- | js/inline.js | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/js/inline.js b/js/inline.js index b83a5ae6..9232fa63 100644 --- a/js/inline.js +++ b/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) })() |
