Skip to content

Commit

Permalink
removed debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanrauh committed Aug 1, 2019
1 parent 791a592 commit 9729f9d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@ public void encodeEnd(FacesContext context) throws IOException {
+ BsfUtils.escapeJQuerySpecialCharsInSelector(formId) + " input').keypress(function (e) { "
+ " if ((e.which && e.which == 13) || (e.keyCode && e.keyCode == 13)) { "
+ " document.getElementsByName('" + actionCommandId + "')[0].click();return false; "
+ " } else { " + " console.log('keycode not 13'); " + " return true; "
+ " } else { return true; "
+ " } " + " }); " + "});", null);

rw.writeText("" + "$(function() { " + " $('form#"
+ BsfUtils.escapeJQuerySpecialCharsInSelector(formId) + " textarea').keypress(function (e) { "
+ " if ((e.ctrlKey && e.which && e.which == 13) || (e.ctrlKey && e.keyCode && e.keyCode == 13)) { "
+ " document.getElementsByName('" + actionCommandId + "')[0].click();return false; "
+ " } else { " + " console.log('keycode not 13 or ctrl not pressed'); " + " return true; "
+ " } else { return true; "
+ " } " + " }); " + "});", null);

rw.endElement("script");
Expand Down

0 comments on commit 9729f9d

Please sign in to comment.