|
@@ -15,8 +15,8 @@ render_action(#event{postback=Postback,actions=_A,source=Source,target=Control,t
|
|
|
|
|
|
data(E,SourceList) ->
|
|
|
Type=fun(A) when is_atom(A) -> [ "atom('",atom_to_list(A),"')" ];
|
|
|
- (A) -> [ "utf8_toByteArray('",A,"')" ] end,
|
|
|
- list_to_binary(["[tuple(tuple(utf8_toByteArray('",E,"'),bin('detail')),[])",
|
|
|
+ (A) -> [ "string('",A,"')" ] end,
|
|
|
+ list_to_binary(["[tuple(tuple(string('",E,"'),bin('detail')),[])",
|
|
|
[ case S of {Id,Code} -> [ ",tuple(",Type(Id),",",Code,")" ];
|
|
|
_ -> [ ",tuple(",Type(S),",querySource('",?B(S),"'))" ]
|
|
|
end || S <- SourceList ],"]"]).
|