replace instead of nesting div inside div

This commit is contained in:
Carsten Otto 2015-04-16 22:55:31 +02:00
parent 32a573d60b
commit d5b695d733

View file

@ -10,7 +10,7 @@
<% end -%>
function replace_updated_predecessor() {
$('#<%= dom_id(@predecessor) %>').html( html_for_predecessor() );
$('#<%= dom_id(@predecessor) %>').replaceWith( html_for_predecessor() );
}
function regenerate_predecessor_family() {