Skip to content

Commit

Permalink
removed useless comments and redundant code.
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperMasterBlasterLaser committed Nov 27, 2015
1 parent 0e3004a commit ee93a12
Showing 1 changed file with 1 addition and 3 deletions.
Expand Up @@ -50,8 +50,6 @@ $(document).on 'nested:fieldRemoved', 'form', (content) ->
add_button = toggler.next()
add_button.addClass('add_nested_fields').html(add_button.data('add-label'))

# Removing all reuired attributes from deleted child form to bypass browser validations.
# Removing all required attributes from deleted child form to bypass browser validations.
field.find('[required]').each ->
#console.log $(this).attr('name')
$(this).removeAttr('required')
return

0 comments on commit ee93a12

Please sign in to comment.