Merge pull request #1864 from C-Otto/tracks-1841

replaceWith instead of html
This commit is contained in:
Dan Rice 2015-05-14 21:23:21 -04:00
commit 6f03b2256b

View file

@ -32,7 +32,7 @@ function regenerate_predecessor_family() {
until parents.empty?
parent = parents.pop
parents += parent.predecessors -%>
$('#<%= dom_id(parent) %>').html("<%= js_render(parent, { :parent_container_type => parent_container_type }) %>");
$('#<%= dom_id(parent) %>').replaceWith("<%= js_render(parent, { :parent_container_type => parent_container_type }) %>");
<%end-%>
}