Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

mod_base: Use .on instead of .bind for wire and friends.

  • Loading branch information...
commit f493bd5791728bcc24e42acf686dc8096f94a655 1 parent 70f7c26
@mmzeeman mmzeeman authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 modules/mod_base/actions/action_base_event.erl
View
4 modules/mod_base/actions/action_base_event.erl
@@ -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 -> $;;
@@ -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 -> <<>>;
Please sign in to comment.
Something went wrong with that request. Please try again.