Skip to content

Commit

Permalink
Wrap new has_many items in an <li> tag
Browse files Browse the repository at this point in the history
  • Loading branch information
jhanggi committed Sep 4, 2014
1 parent 4a4401b commit 1dadb59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/javascripts/active_admin/lib/has_many.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ $ ->
regex = new RegExp $(@).data('placeholder'), 'g'
html = $(@).data('html').replace regex, index

fieldset = $(html).insertBefore(@)
fieldset = $('<li>').html(html).insertBefore(@)
recompute_positions parent
parent.trigger 'has_many_add:after', [fieldset]

Expand Down

0 comments on commit 1dadb59

Please sign in to comment.