Added method to hide overlays
This commit is contained in:
parent
67601001c1
commit
7628b884cf
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue