From ee93a1281adff7b8486424906e123ef18dc180c4 Mon Sep 17 00:00:00 2001 From: Danik <31.10.93@bk.ru> Date: Fri, 27 Nov 2015 18:51:17 +0600 Subject: [PATCH] removed useless comments and redundant code. --- .../javascripts/rails_admin/ra.nested-form-hooks.coffee | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/assets/javascripts/rails_admin/ra.nested-form-hooks.coffee b/app/assets/javascripts/rails_admin/ra.nested-form-hooks.coffee index e34c155e39..3383bad3a7 100644 --- a/app/assets/javascripts/rails_admin/ra.nested-form-hooks.coffee +++ b/app/assets/javascripts/rails_admin/ra.nested-form-hooks.coffee @@ -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