summaryrefslogtreecommitdiff
path: root/web/static/dartboat.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/static/dartboat.js')
-rw-r--r--web/static/dartboat.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/web/static/dartboat.js b/web/static/dartboat.js
index 016742b..358446a 100644
--- a/web/static/dartboat.js
+++ b/web/static/dartboat.js
@@ -125,9 +125,20 @@ let prompt_handlers = {
},
match_over: {
+ undo() {
+ let cl = document.getElementById('key_undo').classList;
+ if (cl.contains('active'))
+ Module.ccall('user_undo');
+ cl.toggle('active');
+ },
+
submit() {
Module.ccall('match_init');
},
+
+ pre(action) {
+ clearOi();
+ }
},
init: {