Software /
code /
prosody
Changeset
3346:c9294e190bb6
mod_adhoc: Add capability to pass data to forms
author | Florian Zeitz <florob@babelmonkeys.de> |
---|---|
date | Sat, 10 Jul 2010 01:17:07 +0200 |
parents | 3345:8520cd88b84c |
children | 3347:99f56bed5228 |
files | plugins/adhoc/adhoc.lib.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/adhoc/adhoc.lib.lua Fri Jul 09 13:28:41 2010 +0100 +++ b/plugins/adhoc/adhoc.lib.lua Sat Jul 10 01:17:07 2010 +0200 @@ -69,9 +69,9 @@ end cmdtag:add_child(actions); elseif name == "form" then - cmdtag:add_child(content:form()); + cmdtag:add_child((content.layout or content):form(content.data)); elseif name == "result" then - cmdtag:add_child(content.layout:form(content.data, "result")); + cmdtag:add_child((content.layout or content):form(content.data, "result")); elseif name == "other" then cmdtag:add_child(content); end