fixed search suggestions on other pages than main page
This commit is contained in:
parent
f492d96563
commit
186026fa6d
2 changed files with 3 additions and 3 deletions
|
@ -937,13 +937,13 @@ form.torrent-sort {
|
|||
padding: 8px 12px;
|
||||
}
|
||||
|
||||
.show .autocomplete ul li {
|
||||
.wrapper-searching .autocomplete ul li {
|
||||
opacity: 1;
|
||||
display: block;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.show .autocomplete {
|
||||
.wrapper-searching .autocomplete {
|
||||
padding-top: 10px;
|
||||
padding-bottom: 10px;
|
||||
color: var(--font-fg);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Wait for the DOM to load
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
const searchInput = document.getElementById('search-input');
|
||||
const searchWrapper = document.querySelector('.wrapper');
|
||||
const searchWrapper = document.querySelector('.wrapper, .wrapper-results');
|
||||
const resultsWrapper = document.querySelector('.autocomplete');
|
||||
|
||||
let suggestions = [];
|
||||
|
|
Loading…
Add table
Reference in a new issue