Fix dialog layer not cleared when dialog gets closed

This commit is contained in:
Sasha 2018-08-26 21:56:54 +02:00
parent 7f1e77dc70
commit a967e438ce
3 changed files with 6 additions and 1 deletions

View file

@ -1,5 +1,9 @@
# Revision history for hanafudapi # Revision history for hanafudapi
## 0.2.0.1 -- 2018-08-26
* Games are now playable
## 0.2.0.0 -- 2018-08-02 ## 0.2.0.0 -- 2018-08-02
* Games are now playable * Games are now playable

View file

@ -2,7 +2,7 @@
-- documentation, see http://haskell.org/cabal/users-guide/ -- documentation, see http://haskell.org/cabal/users-guide/
name: hanafuda-webapp name: hanafuda-webapp
version: 0.2.0.0 version: 0.2.0.1
synopsis: A webapp for the Haskell hanafuda library synopsis: A webapp for the Haskell hanafuda library
-- description: -- description:
homepage: https://framagit.org/hanafuda homepage: https://framagit.org/hanafuda

View file

@ -15,6 +15,7 @@ function Screen(modules) {
function closeAndRun(dialog, action) { function closeAndRun(dialog, action) {
return function() { return function() {
dialog.className = ''; dialog.className = '';
modules.dom.clear(dialog);
action(); action();
}; };
} }