mirror of
https://github.com/Karaka-Management/oms-Navigation.git
synced 2026-02-16 08:38:40 +00:00
fix remove modules bug
This commit is contained in:
parent
a3d3a3a7c2
commit
bf81e24fe5
|
|
@ -76,11 +76,12 @@
|
||||||
this.navigation[e.id] = new jsOMS.Modules.Navigation.Models.Navigation(this.rawNavData[e.id]);
|
this.navigation[e.id] = new jsOMS.Modules.Navigation.Models.Navigation(this.rawNavData[e.id]);
|
||||||
|
|
||||||
// On load
|
// On load
|
||||||
let open = this.navigation[e.id].getOpen();
|
let open = this.navigation[e.id].getOpen(),
|
||||||
|
ele = null;
|
||||||
|
|
||||||
for (let key in open) {
|
for (let key in open) {
|
||||||
if (open.hasOwnProperty(key)) {
|
if (open.hasOwnProperty(key) && (ele = document.getElementById(key)) !== null) {
|
||||||
document.getElementById(key).checked = open[key];
|
ele.checked = open[key];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user