mirror of
https://github.com/searxng/searxng.git
synced 2024-11-25 20:31:00 +00:00
Prevent default browser behavior on click event
This commit is contained in:
parent
8dfc1dbc5c
commit
07e846e91a
1 changed files with 8 additions and 2 deletions
|
@ -92,8 +92,14 @@
|
|||
e.preventDefault();
|
||||
searxng.closeDetail();
|
||||
});
|
||||
searxng.on('.result-detail-previous', 'click', e => searxng.selectPrevious(false));
|
||||
searxng.on('.result-detail-next', 'click', e => searxng.selectNext(false));
|
||||
searxng.on('.result-detail-previous', 'click', e => {
|
||||
e.preventDefault();
|
||||
searxng.selectPrevious(false)
|
||||
});
|
||||
searxng.on('.result-detail-next', 'click', e => {
|
||||
e.preventDefault();
|
||||
searxng.selectNext(false);
|
||||
});
|
||||
|
||||
w.addEventListener('scroll', function () {
|
||||
var e = d.getElementById('backToTop'),
|
||||
|
|
Loading…
Reference in a new issue