mirror of
https://github.com/edward-shen/MMM-pages.git
synced 2024-11-25 03:34:28 -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()
|
||||
.exceptWithClass(this.config.excludes)
|
||||
.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;
|
||||
setTimeout(function() {
|
||||
MM.getModules()
|
||||
.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);
|
||||
} else { Log.error("Pages aren't properly defined!") }
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue