logo

searx

Unnamed repository; edit this file 'description' to name the repository.
commit: dcf93806169cdd1ed61190c2825ae4f0149328b5
parent: 760cb3c5af0f5e6386c2b03789ca29d20967f2a3
Author: Adam Tauber <asciimoo@gmail.com>
Date:   Sat, 22 Oct 2016 21:32:51 +0200

Merge pull request #736 from kvch/fix-images-infinite-scroll

[fix] images modal with infinite scroll

Diffstat:

searx/templates/oscar/result_templates/images.html | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/searx/templates/oscar/result_templates/images.html b/searx/templates/oscar/result_templates/images.html @@ -1,10 +1,10 @@ {% from 'oscar/macros.html' import draw_favicon %} -<a href="{{ result.img_src }}" {% if results_on_new_tab %}target="_blank" rel="noopener noreferrer"{% else %}rel="noreferrer"{% endif %} data-toggle="modal" data-target="#modal-{{ index }}"> +<a href="{{ result.img_src }}" {% if results_on_new_tab %}target="_blank" rel="noopener noreferrer"{% else %}rel="noreferrer"{% endif %} data-toggle="modal" data-target="#modal-{{ index }}-{{pageno}}"> <img src="{% if result.thumbnail_src %}{{ image_proxify(result.thumbnail_src) }}{% else %}{{ image_proxify(result.img_src) }}{% endif %}" alt="{{ result.title|striptags }}" title="{{ result.title|striptags }}" class="img-thumbnail"> </a> -<div class="modal fade" id="modal-{{ index }}" tabindex="-1" role="dialog" aria-hidden="true"> +<div class="modal fade" id="modal-{{ index }}-{{ pageno }}" tabindex="-1" role="dialog" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-wrapper"> <div class="modal-header">