summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-04-23 17:21:19 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-04-23 17:21:19 -0700
commit9b7110d2652a18377bdd09094704188399bef0f8 (patch)
treeaa5e9627c7a5417b57d726d9495a5e042b0404da /web
parent957b61f582ce59d19bdae54c41600a76b0dcc2e7 (diff)
downloaddartboat-9b7110d2652a18377bdd09094704188399bef0f8.tar.gz
dartboat-9b7110d2652a18377bdd09094704188399bef0f8.tar.xz
web: clear prompt when undo is pressed
Diffstat (limited to 'web')
-rw-r--r--web/static/dartboat.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/web/static/dartboat.js b/web/static/dartboat.js
index 6a0d07b..b007c81 100644
--- a/web/static/dartboat.js
+++ b/web/static/dartboat.js
@@ -79,6 +79,7 @@ let prompt_handlers = {
},
undo() {
+ this.clear();
let cl = document.getElementById('key_undo').classList;
if (cl.contains('active'))
Module.ccall('user_undo');