|
@@ -32,5 +32,5 @@ new(Postback, Element, Delegate, Name, Data, Source, Validation) ->
|
|
|
([H|T]) -> [[$'|H]++[$']] ++ [ [$,,$'|E]++[$'] || E <- T ] end,
|
|
|
Event = #ev{name=Name, module=Module, msg=Postback, trigger=Element},
|
|
|
list_to_binary(["{ if (validateSources([",Join([ nitro:to_list(S) || S <- Source, S =/= []]),
|
|
|
- "])) { ",?B(Validation)," ws.send(enc(tuple(atom('",?B(application:get_env(n2o,event,pickle)),"'),bin('",
|
|
|
+ "]", ",'", Element, "'", ")) { ",?B(Validation)," ws.send(enc(tuple(atom('",?B(application:get_env(n2o,event,pickle)),"'),bin('",
|
|
|
Element,"'),bin('",nitro:pickle(Event),"'),",Data,"))); } else console.log('Validation Error'); }"]).
|