Compare commits

..

No commits in common. "419a57f2d9246a5b6b12e02a9d927a6dccfd5814" and "9e944dc1895878cd0c7acb20c3d98f931b46c322" have entirely different histories.

3 changed files with 9 additions and 7 deletions

View File

@ -28,15 +28,17 @@ $(document).ready(function(){
context: document.body,
success: function(data) {
var last_expanded = false;
$(data).find('div.postcontainer').each(function() {
$(data).find('div.post.reply').each(function() {
thread.find('div.hidden').remove();
var post_in_doc = thread.find('#' + $(this).attr('id'));
if(post_in_doc.length == 0) {
/*
if(last_expanded) {
$(this).addClass('expanded').insertAfter(last_expanded);
$(this).addClass('expanded').insertAfter(last_expanded).before('<br class="expanded">');
} else {
$(this).addClass('expanded').insertAfter(thread.find('div.post:first'));
$(this).addClass('expanded').insertAfter(thread.find('div.post:first')).after('<br class="expanded">');
}
*/
last_expanded = $(this);
$(document).trigger('new_post', this);
} else {

View File

@ -25,7 +25,7 @@ $(document).ready(function(){
else
return;
$post = $('#reply_' + id + ', #op_' + id);
$post = $('#reply_' + id);
if($post.length == 0)
return;
@ -46,9 +46,9 @@ $(document).ready(function(){
});
};
$('div.post').each(showBackLinks);
$('div.post.reply').each(showBackLinks);
$(document).on('new_post', function(e, post) {
$(document).on('new_post', function(e, post) {
if ($(post).hasClass("reply")) {
showBackLinks.call(post);
}

View File

@ -152,7 +152,7 @@ $(document).ready(function(){
$('.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.
$('.op>.intro>a:last').after('<a class="watchThread" href="#">['+_('Watch Thread')+']</a>');
$('.op>.intro').append('<a class="watchThread" href="#">['+_('Watch Thread')+']</a>');
//Draw the watchlist, hidden.
watchlist.render();