create headlines spacer with document.createElement()
This commit is contained in:
parent
6c110c1ceb
commit
2cd23e344c
|
@ -643,7 +643,12 @@ const Headlines = {
|
||||||
}
|
}
|
||||||
|
|
||||||
let hsp = $("headlines-spacer");
|
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);
|
dijit.byId('headlines-frame').domNode.appendChild(hsp);
|
||||||
|
|
||||||
this.initHeadlinesMenu();
|
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);
|
c.domNode.appendChild(hsp);
|
||||||
|
|
||||||
/* console.log("restore selected ids: " + ids);
|
/* console.log("restore selected ids: " + ids);
|
||||||
|
|
Loading…
Reference in New Issue