mirror of
https://github.com/searxng/searxng
synced 2024-01-01 18:24:07 +00:00
Merge pull request #737 from return42/fix-542
[fix] autocomple.js: register li.onmousedown instead li.onclick
This commit is contained in:
commit
f4004133b6
2
searx/static/themes/simple/js/searxng.min.js
vendored
2
searx/static/themes/simple/js/searxng.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -73,6 +73,16 @@
|
||||
this.DOMResults.style.left = this.Input.offsetLeft + "px";
|
||||
this.DOMResults.style.width = this.Input.clientWidth + "px";
|
||||
},
|
||||
_Open: function () {
|
||||
var params = this;
|
||||
Array.prototype.forEach.call(this.DOMResults.getElementsByTagName("li"), function (li) {
|
||||
if (li.getAttribute("class") != "locked") {
|
||||
li.onmousedown = function () {
|
||||
params._Select(li);
|
||||
};
|
||||
}
|
||||
});
|
||||
},
|
||||
}, "#" + qinput_id);
|
||||
|
||||
// hack, see : https://github.com/autocompletejs/autocomplete.js/issues/37
|
||||
|
Loading…
Reference in New Issue
Block a user