mirror of
https://github.com/searxng/searxng
synced 2024-11-09 01:10:26 +00:00
Merge pull request #997 from return42/fix-794
[fix] Text can't be selected when using simple theme with JS enabled
This commit is contained in:
commit
3c924c22d9
Binary file not shown.
BIN
searx/static/themes/simple/js/searxng.min.js
vendored
BIN
searx/static/themes/simple/js/searxng.min.js
vendored
Binary file not shown.
Binary file not shown.
@ -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
Block a user