add backlinks to OP
This commit is contained in:
parent
40d77692a2
commit
419a57f2d9
|
@ -25,7 +25,7 @@ $(document).ready(function(){
|
||||||
else
|
else
|
||||||
return;
|
return;
|
||||||
|
|
||||||
$post = $('#reply_' + id);
|
$post = $('#reply_' + id + ', #op_' + id);
|
||||||
if($post.length == 0)
|
if($post.length == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -46,9 +46,9 @@ $(document).ready(function(){
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
$('div.post.reply').each(showBackLinks);
|
$('div.post').each(showBackLinks);
|
||||||
|
|
||||||
$(document).on('new_post', function(e, post) {
|
$(document).on('new_post', function(e, post) {
|
||||||
if ($(post).hasClass("reply")) {
|
if ($(post).hasClass("reply")) {
|
||||||
showBackLinks.call(post);
|
showBackLinks.call(post);
|
||||||
}
|
}
|
||||||
|
|
|
@ -152,7 +152,7 @@ $(document).ready(function(){
|
||||||
$('.boardlist').append('<span>[ <a class="watchlist-toggle" href="#">'+_('watchlist')+'</a> ]</span>');
|
$('.boardlist').append('<span>[ <a class="watchlist-toggle" href="#">'+_('watchlist')+'</a> ]</span>');
|
||||||
$('.compact-boardlist').append('<span>[ <a class="watchlist-toggle" href="#">'+_('watchlist')+'</a> ]</span>');
|
$('.compact-boardlist').append('<span>[ <a class="watchlist-toggle" href="#">'+_('watchlist')+'</a> ]</span>');
|
||||||
//Append a watch thread button after every OP.
|
//Append a watch thread button after every OP.
|
||||||
$('.op>.intro').append('<a class="watchThread" href="#">['+_('Watch Thread')+']</a>');
|
$('.op>.intro>a:last').after('<a class="watchThread" href="#">['+_('Watch Thread')+']</a>');
|
||||||
|
|
||||||
//Draw the watchlist, hidden.
|
//Draw the watchlist, hidden.
|
||||||
watchlist.render();
|
watchlist.render();
|
||||||
|
|
Loading…
Reference in New Issue