no usar ES6

This commit is contained in:
f 2018-06-27 20:35:09 -03:00
parent cc06bcc385
commit dd6b37bdd2
No known key found for this signature in database
GPG key ID: F3FDAB97B5F9F7E7

View file

@ -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('');
});