replaceWith instead of html

This commit is contained in:
Carsten Otto 2015-05-14 14:02:35 +02:00
parent 660238d2cf
commit be8be4c558

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-%>
}