mirror of
https://github.com/searxng/searxng.git
synced 2024-12-25 18:50:30 +00:00
e8319fa2cb
This reverts commitbff41987a4
, reversing changes made tod08108be62
.
18 lines
725 B
JavaScript
18 lines
725 B
JavaScript
$(document).ready(function() {
|
|
var win = $(window);
|
|
win.scroll(function() {
|
|
if ($(document).height() - win.height() == win.scrollTop()) {
|
|
var formData = $('#pagination form:last').serialize();
|
|
if (formData) {
|
|
$('#pagination').html('<div class="loading-spinner"></div>');
|
|
$.post('./', formData, function (data) {
|
|
var body = $(data);
|
|
$('#pagination').remove();
|
|
$('#main_results').append('<hr/>');
|
|
$('#main_results').append(body.find('.result'));
|
|
$('#main_results').append(body.find('#pagination'));
|
|
});
|
|
}
|
|
}
|
|
});
|
|
});
|