Comparison

util/dataforms.lua @ 1944:754eebd31538

util.dataforms: Support for jid-single field type especially for Florob :)
author Matthew Wild <mwild1@gmail.com>
date Sat, 10 Oct 2009 02:21:25 +0100 (2009-10-10)
parent 1522:569d58d21612
child 1945:adfd7f3720f5
comparison
equal deleted inserted replaced
1943:3d4c703d9333 1944:754eebd31538
104 end 104 end
105 105
106 field_readers["text-private"] = 106 field_readers["text-private"] =
107 field_readers["text-single"]; 107 field_readers["text-single"];
108 108
109 field_readers["jid-single"] =
110 field_readers["text-single"];
111
109 field_readers["text-multi"] = 112 field_readers["text-multi"] =
110 function (field_tag) 113 function (field_tag)
111 local result = {}; 114 local result = {};
112 for value_tag in field_tag:childtags() do 115 for value_tag in field_tag:childtags() do
113 if value_tag.name == "value" then 116 if value_tag.name == "value" then