mirror of
https://github.com/gnosygnu/xowa.git
synced 2025-06-13 12:54:14 +00:00
HTTP Server: Fix search-suggest not working for vector ul [#489]
This commit is contained in:
parent
b350d95206
commit
55a4891064
@ -90,6 +90,7 @@ function showSuggestions (suggestions) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
suggestionList.style.display = '';
|
suggestionList.style.display = '';
|
||||||
|
suggestionList.style.height = 'auto'; // .vector tabs ul {height:100%} causes all search-suggest rows to collapse into one; DATE:2019-08-04
|
||||||
var i, li;
|
var i, li;
|
||||||
for (i = 0; i < suggestions.length; i += 2) {
|
for (i = 0; i < suggestions.length; i += 2) {
|
||||||
var page_db = suggestions[i];
|
var page_db = suggestions[i];
|
||||||
@ -168,6 +169,7 @@ function init () {
|
|||||||
suggestionList = document.createElement('ul');
|
suggestionList = document.createElement('ul');
|
||||||
suggestionList.id = 'xowa-search-suggestions';
|
suggestionList.id = 'xowa-search-suggestions';
|
||||||
suggestionList.style.display = 'none';
|
suggestionList.style.display = 'none';
|
||||||
|
suggestionList.style.height = 'auto !important';
|
||||||
document.getElementById('simpleSearch').appendChild(suggestionList);
|
document.getElementById('simpleSearch').appendChild(suggestionList);
|
||||||
searchInput.addEventListener('keyup', onKeyUp, false);
|
searchInput.addEventListener('keyup', onKeyUp, false);
|
||||||
searchInput.addEventListener('keydown', onKeyDown, false);
|
searchInput.addEventListener('keydown', onKeyDown, false);
|
||||||
@ -179,5 +181,4 @@ function init () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
document.addEventListener('DOMContentLoaded', init, false);
|
document.addEventListener('DOMContentLoaded', init, false);
|
||||||
|
|
||||||
})();
|
})();
|
Loading…
Reference in New Issue
Block a user