summaryrefslogtreecommitdiff
path: root/searx/static/plugins
diff options
context:
space:
mode:
authorNoémi Ványi <sitbackandwait@gmail.com>2017-01-03 22:04:09 +0100
committerNoémi Ványi <sitbackandwait@gmail.com>2017-01-03 22:04:09 +0100
commite8319fa2cbd388712a39202d44c1b6a3a520b048 (patch)
tree0a9d475e1783dfbc150271f4f8159e02e3b212ce /searx/static/plugins
parent8af29d9797ce0b8ba06c1440d4d074c487994e1c (diff)
downloadsearxng-e8319fa2cbd388712a39202d44c1b6a3a520b048.tar.gz
searxng-e8319fa2cbd388712a39202d44c1b6a3a520b048.zip
Revert "Merge pull request #793 from kvch/pics-modal"
This reverts commit bff41987a49af9ae53ff9fc3494fa7973ac03500, reversing changes made to d08108be6293c8764f0d1d950a7aab283cddffed.
Diffstat (limited to 'searx/static/plugins')
-rw-r--r--searx/static/plugins/js/infinite_scroll.js4
1 files changed, 0 insertions, 4 deletions
diff --git a/searx/static/plugins/js/infinite_scroll.js b/searx/static/plugins/js/infinite_scroll.js
index 1bc27e2e7..9cd582d7f 100644
--- a/searx/static/plugins/js/infinite_scroll.js
+++ b/searx/static/plugins/js/infinite_scroll.js
@@ -4,13 +4,9 @@ $(document).ready(function() {
if ($(document).height() - win.height() == win.scrollTop()) {
var formData = $('#pagination form:last').serialize();
if (formData) {
- var pageno = $('#pagination input[name=pageno]:last').attr('value');
$('#pagination').html('<div class="loading-spinner"></div>');
$.post('./', formData, function (data) {
- var lastImageHref = $('.result-images:last a').attr('href');
var body = $(data);
- $('a[href^="#open-modal"]:last').attr('href', '#open-modal-1-' + pageno);
- body.find('.modal-image a:first').attr('href', lastImageHref);
$('#pagination').remove();
$('#main_results').append('<hr/>');
$('#main_results').append(body.find('.result'));