8000 Cleaned up javascript code by flip111 · Pull Request #4376 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

8000 Cleaned up javascript code #4376

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added prevent default
  • Loading branch information
flip111 committed Oct 26, 2014
commit 1c7836b66dca1174edb15b3fa2f377c8611ff977
4 changes: 3 additions & 1 deletion reference/forms/types/collection.rst
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,9 @@ you need is the JavaScript:
// keep track of how many email fields have been rendered
var emailCount = '{{ form.emails|length }}';

jQuery(document).ready(function() {
jQuery(document).ready(function(e) {
e.preventDefault();

jQuery('#add-another-email').click(function() {
var emailList = jQuery('#email-fields-list');

Expand Down
0