Skip to content

Commit

Permalink
#916 added the "event" parameter for Firefox compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanrauh committed Feb 21, 2018
1 parent 1ed8f58 commit 7c14b8e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ public void encodeBegin(FacesContext context, UIComponent component) throws IOEx
rw.writeAttribute("id", clientId, null);
String c = call.toString().replace("callAjax(this,", "callAjax(document.getElementById('" + clientId + "'),");
if (parameters!=null) {
rw.append("function " + name + "(" + parameters + "){" + c + "}");
rw.append("function " + name + "(" + parameters + ", event){" + c + "}");
} else {
rw.append("function " + name + "(){" + c + "}");
rw.append("function " + name + "(event){" + c + "}");
}
rw.endElement("script");

Expand Down

0 comments on commit 7c14b8e

Please sign in to comment.