|
|
@ -45,13 +45,13 @@ var load_next_page = function() { |
|
|
|
if (!href) return; |
|
|
|
|
|
|
|
var boardheader = $('<h2>'+_('Page')+' '+next_page.html()+'</h2>'); |
|
|
|
var loading_ind = $('<h2>'+_('Loading...')+'</h2>').insertBefore('form[name="postcontrols"]>.delete:first'); |
|
|
|
var loading_ind = $('<h2>'+_('Loading...')+'</h2>').insertBefore('#post-moderation-fields'); |
|
|
|
|
|
|
|
$.get(href, function(data) { |
|
|
|
var doc = $(data); |
|
|
|
|
|
|
|
loading_ind.remove(); |
|
|
|
boardheader.insertBefore('form[name="postcontrols"]>.delete:first'); |
|
|
|
boardheader.insertBefore('#post-moderation-fields'); |
|
|
|
|
|
|
|
var i = 0; |
|
|
|
|
|
|
@ -62,13 +62,15 @@ var load_next_page = function() { |
|
|
|
if ($('div#thread_' + checkout).length == 0) { |
|
|
|
// Delay DOM insertion to lessen the lag.
|
|
|
|
setTimeout(function() { |
|
|
|
$($this).insertBefore('form[name="postcontrols"]>.delete:first'); |
|
|
|
$($this).insertBefore('#post-moderation-fields'); |
|
|
|
$(document).trigger('new_post', $this); |
|
|
|
$($this).hide().slideDown(); |
|
|
|
}, 500*i); |
|
|
|
|
|
|
|
i++; |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
setTimeout(function() { |
|
|
|
loading = false; |
|
|
|
scrolltest(); |
|
|
@ -76,7 +78,6 @@ var load_next_page = function() { |
|
|
|
|
|
|
|
next_page.addClass('selected'); |
|
|
|
}); |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
var button = $("<a href='#all'>"+_("All")+" </a>").prependTo(".pages"); |
|
|
|