aboutsummaryrefslogtreecommitdiffstats
path: root/util/dataforms.lua
diff options
context:
space:
mode:
Diffstat (limited to 'util/dataforms.lua')
-rw-r--r--util/dataforms.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/dataforms.lua b/util/dataforms.lua
index 30a1dde7..5a856abe 100644
--- a/util/dataforms.lua
+++ b/util/dataforms.lua
@@ -28,6 +28,9 @@ end
function form_t.form(layout, data, formtype)
if not formtype then formtype = "form" end
local form = st.stanza("x", { xmlns = xmlns_forms, type = formtype });
+ if formtype == "cancel" then
+ return form;
+ end
if layout.title then
form:tag("title"):text(layout.title):up();
end