mirror of
https://github.com/edward-shen/MMM-pages.git
synced 2024-11-22 10:14:30 -08:00
fixed bug where module would not properly visibility-lock modules
This commit is contained in:
parent
073ec5e290
commit
aab0d1d627
1 changed files with 2 additions and 2 deletions
|
@ -46,13 +46,13 @@ Module.register("MMM-pages", {
|
||||||
MM.getModules()
|
MM.getModules()
|
||||||
.exceptWithClass(this.config.excludes)
|
.exceptWithClass(this.config.excludes)
|
||||||
.exceptWithClass(this.config.modules[this.curPage])
|
.exceptWithClass(this.config.modules[this.curPage])
|
||||||
.enumerate(module => { module.hide(this.config.animationTime / 2, { lockstring: this.identifier }) });
|
.enumerate(module => { module.hide(this.config.animationTime / 2, { lockString: this.identifier }) });
|
||||||
|
|
||||||
let self = this;
|
let self = this;
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
MM.getModules()
|
MM.getModules()
|
||||||
.withClass(self.config.modules[self.curPage])
|
.withClass(self.config.modules[self.curPage])
|
||||||
.enumerate(module => { module.show(self.config.animationTime / 2, { lockstring: self.identifier }) });
|
.enumerate(module => { module.show(self.config.animationTime / 2, { lockString: self.identifier }) });
|
||||||
}, this.config.animationTime / 2);
|
}, this.config.animationTime / 2);
|
||||||
} else { Log.error("Pages aren't properly defined!") }
|
} else { Log.error("Pages aren't properly defined!") }
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue