From fafc3b4fb9aebdfea2eff09564a11c8ed556329e Mon Sep 17 00:00:00 2001 From: Alma Armas Date: Fri, 17 Jul 2020 16:25:55 +0000 Subject: [PATCH] Fix MessageBox bug which caused dialog to close on button press without invoking handler --- Web/static/js/messagebox.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Web/static/js/messagebox.js b/Web/static/js/messagebox.js index 6c5bd8c0..1071cded 100644 --- a/Web/static/js/messagebox.js +++ b/Web/static/js/messagebox.js @@ -24,10 +24,10 @@ function MessageBox(title, body, buttons, callbacks) { }; Reflect.apply(callbacks[callback], { - closeDialog: __closeDialog() + closeDialog: () => __closeDialog() }, [e]); __closeDialog(); }); }); -} \ No newline at end of file +}