forked from GithubBackups/vichan
show-backlinks.js: fix and format
This commit is contained in:
parent
2311035748
commit
5c8c851681
@ -14,7 +14,7 @@
|
||||
|
||||
onReady(function() {
|
||||
let showBackLinks = function() {
|
||||
let reply_id = $(this).attr('id').replace(/(^reply_)|(^op_)/, '');
|
||||
let replyId = $(this).attr('id').replace(/(^reply_)|(^op_)/, '');
|
||||
|
||||
$(this).find('div.body a:not([rel="nofollow"])').each(function() {
|
||||
let id = $(this).text().match(/^>>(\d+)$/);
|
||||
@ -41,9 +41,9 @@ onReady(function() {
|
||||
return;
|
||||
}
|
||||
|
||||
let link = $('<a class="mentioned-' + reply_id + '" onclick="highlightReply(\'' + reply_id + '\');" href="#' + reply_id + '">>>' +
|
||||
reply_id + '</a>');
|
||||
link.appendTo(mentioned)
|
||||
let link = $('<a class="mentioned-' + replyId + '" onclick="highlightReply(\'' + replyId + '\');" href="#'
|
||||
+ replyId + '">>>' + replyId + '</a>');
|
||||
link.appendTo(mentioned);
|
||||
|
||||
if (window.init_hover) {
|
||||
link.each(init_hover);
|
||||
|
Loading…
x
Reference in New Issue
Block a user