mirror of
https://github.com/edward-shen/MMM-pages.git
synced 2024-11-24 11:14:29 -08:00
fix file name and register and hide/show
This commit is contained in:
parent
2f5ac7666a
commit
a67625905c
1 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
Module.register('MMM-pages', {
|
Module.register('MMM-Pages', {
|
||||||
|
|
||||||
// We require the older style of function declaration for compatibility
|
// We require the older style of function declaration for compatibility
|
||||||
// reasons.
|
// reasons.
|
||||||
|
@ -218,13 +218,13 @@ Module.register('MMM-pages', {
|
||||||
|
|
||||||
MM.getModules()
|
MM.getModules()
|
||||||
.exceptWithClass(modulesToShow)
|
.exceptWithClass(modulesToShow)
|
||||||
.enumerate(module => module.hide(animationTime, lockStringObj));
|
.enumerate(module => module.hide(animationTime,()=>{}, lockStringObj));
|
||||||
|
|
||||||
// Shows all modules meant to be on the current page, after a small delay.
|
// Shows all modules meant to be on the current page, after a small delay.
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
MM.getModules()
|
MM.getModules()
|
||||||
.withClass(modulesToShow)
|
.withClass(modulesToShow)
|
||||||
.enumerate(module => module.show(animationTime, lockStringObj));
|
.enumerate(module => module.show(animationTime, ()=>{}, lockStringObj));
|
||||||
}, animationTime);
|
}, animationTime);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue