forked from zaclys/searxng
[fix] Text can't be selected when using simple theme with JS enabled
Closes: https://github.com/searxng/searxng/issues/794 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
728b2b5796
commit
022479d4c2
|
@ -32,7 +32,7 @@ searxng.ready(function () {
|
||||||
return resultElement && resultElement.classList.contains('result-images');
|
return resultElement && resultElement.classList.contains('result-images');
|
||||||
}
|
}
|
||||||
|
|
||||||
searxng.on('.result', 'click', function (e) {
|
searxng.on('.result', 'mousedown', 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);
|
||||||
|
|
Loading…
Reference in New Issue