1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-20 03:10:10 +01:00

[fix] revert changes from #997

* in #997 there was a bug introduced: #1002
-> for now we just revert the change to make the image detail modal usable again
This commit is contained in:
mrpaulblack 2022-03-25 13:08:17 +01:00
parent 16aa731053
commit d8d42c8541

View File

@ -32,7 +32,7 @@ searxng.ready(function () {
return resultElement && resultElement.classList.contains('result-images'); return resultElement && resultElement.classList.contains('result-images');
} }
searxng.on('.result', 'mousedown', function (e) { searxng.on('.result', 'click', function (e) {
if (!isElementInDetail(e.target)) { if (!isElementInDetail(e.target)) {
highlightResult(this)(true); highlightResult(this)(true);
let resultElement = getResultElement(e.target); let resultElement = getResultElement(e.target);