#12 Mostly fixed position issues

This commit is contained in:
Serraniel 2020-07-29 13:40:52 +02:00
parent 41d4ac1845
commit c88ea3b6f3
Signed by: Serraniel
GPG key ID: 3690B4E7364525D3

View file

@ -3,8 +3,6 @@ runAfterLoad(() => {
}, ".*");
function initSearch() {
let menu = document.getElementById('materialize-menu-dropdown');
let entry = document.createElement('li');
entry.setAttribute('ng-repeat', 'item in navbar');
entry.setAttribute('ng-class', '{\'anime-indicator\': item[\'@attributes\'].title==\'Anime\'}');
@ -19,6 +17,11 @@ function initSearch() {
entry.appendChild(quickSearchElement);
let dummyNode = document.createElement('a');
dummyNode.appendChild(quickSearchElement);
entry.appendChild(dummyNode);
let menu = document.getElementById('materialize-menu-dropdown');
menu.insertAdjacentElement('beforeend', entry);
}