#12 Mostly fixed position issues
This commit is contained in:
parent
41d4ac1845
commit
c88ea3b6f3
|
@ -3,8 +3,6 @@ runAfterLoad(() => {
|
||||||
}, ".*");
|
}, ".*");
|
||||||
|
|
||||||
function initSearch() {
|
function initSearch() {
|
||||||
let menu = document.getElementById('materialize-menu-dropdown');
|
|
||||||
|
|
||||||
let entry = document.createElement('li');
|
let entry = document.createElement('li');
|
||||||
entry.setAttribute('ng-repeat', 'item in navbar');
|
entry.setAttribute('ng-repeat', 'item in navbar');
|
||||||
entry.setAttribute('ng-class', '{\'anime-indicator\': item[\'@attributes\'].title==\'Anime\'}');
|
entry.setAttribute('ng-class', '{\'anime-indicator\': item[\'@attributes\'].title==\'Anime\'}');
|
||||||
|
@ -19,6 +17,11 @@ function initSearch() {
|
||||||
|
|
||||||
entry.appendChild(quickSearchElement);
|
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);
|
menu.insertAdjacentElement('beforeend', entry);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue