From 199fd55525529a689a6164c1166bac647720eebd Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Tue, 28 Feb 2023 16:38:25 -0500 Subject: [PATCH] Pass through all events --- views/credit_cards.slim | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/views/credit_cards.slim b/views/credit_cards.slim index f9934aa640b4253520c286155f75e15ede9b51db..ec053e83465d186efc85bea3e0dbe86fcd40fe5b 100644 --- a/views/credit_cards.slim +++ b/views/credit_cards.slim @@ -55,6 +55,15 @@ javascript: if (ev.data === "xmpp_xep0050/next") { document.querySelector("form").requestSubmit(); } + if (ev.data === "xmpp_xep0050/cancel") { + window.xmpp_xep0050.execute("cancel"); + } + if (ev.data === "xmpp_xep0050/prev") { + window.xmpp_xep0050.execute("prev"); + } + if (ev.data === "xmpp_xep0050/complete") { + window.xmpp_xep0050.execute("complete"); + } }); }