diff options
-rw-r--r-- | util/dataforms.lua | 3 |
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 |