create headlines spacer with document.createElement()

This commit is contained in:
Andrew Dolgov 2018-12-01 22:16:08 +03:00
parent 6c110c1ceb
commit 2cd23e344c
1 changed files with 11 additions and 2 deletions

View File

@ -643,7 +643,12 @@ const Headlines = {
}
let hsp = $("headlines-spacer");
if (!hsp) hsp = new Element("DIV", {"id": "headlines-spacer"});
if (!hsp) {
hsp = document.createElement("div");
hsp.id = "headlines-spacer";
}
dijit.byId('headlines-frame').domNode.appendChild(hsp);
this.initHeadlinesMenu();
@ -681,7 +686,11 @@ const Headlines = {
}
}
if (!hsp) hsp = new Element("DIV", {"id": "headlines-spacer"});
if (!hsp) {
hsp = document.createElement("div");
hsp.id = "headlines-spacer";
}
c.domNode.appendChild(hsp);
/* console.log("restore selected ids: " + ids);