1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-24 23:50:11 +01:00

Show backlinks on OP

This commit is contained in:
8chan 2014-12-15 23:35:39 -08:00
parent cccc1bff79
commit 9dbc4e93be

View File

@ -15,7 +15,7 @@
onready(function(){
var showBackLinks = function() {
var reply_id = $(this).attr('id').replace(/^reply_/, '');
var reply_id = $(this).attr('id').replace(/^(reply|op)_/, '');
$(this).find('div.body a:not([rel="nofollow"])').each(function() {
var id, post, $mentioned;
@ -26,6 +26,9 @@ onready(function(){
return;
$post = $('#reply_' + id);
if($post.length == 0)
$post = $('#op_' + id);
if($post.length == 0)
return;