Added method to hide overlays

This commit is contained in:
Niko 2022-02-14 02:43:41 +01:00
parent 67601001c1
commit 7628b884cf
1 changed files with 9 additions and 0 deletions

View File

@ -48,6 +48,15 @@ app.template = {
}, },
} }
app.overlay = {
hideAll: function() {
document.querySelectorAll('.overlay')
.forEach(function(dom) {
dom.style.display = 'none';
})
},
}
function scriptPageHandler(modname, cfg) { function scriptPageHandler(modname, cfg) {
cfg['callback'] = function(args) { cfg['callback'] = function(args) {
app.script(modname, function(ok) { app.script(modname, function(ok) {