diff --git a/app/assets/javascripts/table_field.js b/app/assets/javascripts/table_field.js index ede3fa2..ed2e148 100644 --- a/app/assets/javascripts/table_field.js +++ b/app/assets/javascripts/table_field.js @@ -29,7 +29,7 @@ $(document).on('turbolinks:load', function() { _group.find('[name*="[0]"]').each(function(i, input) { var _input = $(input); var _name = _input.attr('name'); - _input.attr('name', _name.replace(/\[0\]/, `[${_date}]`)); + _input.attr('name', _name.replace(/\[0\]/, '['+_date+']')); _input.val(''); });