Skip to content

Commit

Permalink
mod_base: Use .on instead of .bind for wire and friends.
Browse files Browse the repository at this point in the history
  • Loading branch information
mmzeeman committed Mar 15, 2013
1 parent 70f7c26 commit f493bd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/mod_base/actions/action_base_event.erl
Expand Up @@ -38,7 +38,7 @@ render_action(TriggerId, TargetId, Args, Context) ->
EventType == enterkey orelse EventType == "enterkey" ->
[
z_render:render_css_selector(z_render:css_selector(Trigger, Args)),
<<"'.bind('keypress', ">>,
<<"'.on('keypress', ">>,
<<"function(event) { if (z_is_enter_key(event)) { ">>, PostbackMsgJS, ActionsJS,
case Propagate of
true -> $;;
Expand Down Expand Up @@ -86,7 +86,7 @@ render_action(TriggerId, TargetId, Args, Context) ->
true ->
[
z_render:render_css_selector(z_render:css_selector(Trigger, Args)),
<<".bind('">>, z_convert:to_list(EventType), <<"', ">>,
<<".on('">>, z_convert:to_list(EventType), <<"', ">>,
<<"function(event) { ">>, PostbackMsgJS, ActionsJS,
case Propagate of
true -> <<>>;
Expand Down

0 comments on commit f493bd5

Please sign in to comment.