Software /
code /
prosody
Comparison
util/dataforms.lua @ 6149:2ae6e9063e88
Merge 0.9->0.10
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 23 Apr 2014 00:22:36 +0200 |
parent | 5776:bd0ff8ae98a8 |
parent | 6148:7dcd6f124c93 |
child | 6468:3728c30da4e3 |
comparison
equal
deleted
inserted
replaced
6146:ac4f8770d9aa | 6149:2ae6e9063e88 |
---|---|
92 end | 92 end |
93 end | 93 end |
94 end | 94 end |
95 end | 95 end |
96 | 96 |
97 local media = field.media; | |
98 if media then | |
99 form:tag("media", { xmlns = "urn:xmpp:media-element", height = media.height, width = media.width }); | |
100 for _, val in ipairs(media) do | |
101 form:tag("uri", { type = val.type }):text(val.uri):up() | |
102 end | |
103 form:up(); | |
104 end | |
105 | |
97 if field.required then | 106 if field.required then |
98 form:tag("required"):up(); | 107 form:tag("required"):up(); |
99 end | 108 end |
100 | 109 |
101 -- Jump back up to list of fields | 110 -- Jump back up to list of fields |