Skip to content

Commit

Permalink
rest dep moved to sample. n2o shouldn't depend on rest
Browse files Browse the repository at this point in the history
  • Loading branch information
5HT committed May 19, 2014
1 parent 43751b9 commit 299f962
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 22 deletions.
1 change: 0 additions & 1 deletion rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@
{deps,[
{cowboy, ".*", {git, "git://github.com/extend/cowboy", {tag,"0.9.0"}}},
{gproc, ".*", {git, "git://github.com/uwiger/gproc.git", {tag,"0.3"}}},
{rest, ".*", {git, "git://github.com/synrc/rest.git", {tag,"1.5.0"}}},
{erlydtl, ".*", {git, "git://github.com/evanmiller/erlydtl.git", {tag,"0.8.0"}}}
]}.
17 changes: 3 additions & 14 deletions samples/rebar.config
Original file line number Diff line number Diff line change
@@ -1,20 +1,9 @@
% {plugins,[ling_builder]}.
{sub_dirs,["apps"]}.
{lib_dirs,["apps"]}.
{deps_dir,"deps"}.
{deps, [
% {ling_builder, ".*", {git,"git://github.com/maximk/ling_builder.git","master"}},
{gproc, ".*", {git, "git://github.com/uwiger/gproc.git", "HEAD"}},
{active, ".*", {git, "git://github.com/synrc/active", {tag, "0.5"}}},
{gproc, ".*", {git, "git://github.com/uwiger/gproc.git", "HEAD"}},
{active, ".*", {git, "git://github.com/synrc/active", {tag, "0.5"}}},
{rest, ".*", {git, "git://github.com/synrc/rest.git", {tag,"1.5.0"}}},
{n2o, ".*", {git, "git://github.com/5HT/n2o", "HEAD"}}
]}.

{ling_builder_opts,[
{build_host,"build.erlangonxen.org:8080"},
{username,"test"},
{password,"test"},
{import_lib,crypto},
{import_lib,sasl},
{import, "deps/n2o_sample/priv/*/*"},
{import, "deps/n2o_sample/priv/*/*/*"}
]}.
9 changes: 2 additions & 7 deletions src/elements/element_dropdown.erl
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,8 @@ render_element(Record = #dropdown{}) ->
ID = Record#dropdown.id,
case Record#dropdown.postback of
undefined -> skip;
%Postback -> %wf:wire(#event{type=click, postback=Postback, target=ID,
% source=Record#button.source, delegate=Record#button.delegate }) end,
Postback ->
wf:wire(#event { type=click, postback=Postback, target=ID,
source=Record#dropdown.source, delegate=Record#dropdown.delegate } ) end,
% target=ID,
% postback=Record#dropdown.postback }) end,
Postback -> wf:wire(#event { type=click, postback=Postback, target=ID,
source=Record#dropdown.source, delegate=Record#dropdown.delegate } ) end,

Opts = [wf_tags:emit_tag(<<"option">>, [O#option.label], [
{<<"disabled">>, O#option.disabled},
Expand Down

0 comments on commit 299f962

Please sign in to comment.