replace element instead nesting another div inside existing div

This commit is contained in:
Carsten Otto 2015-04-14 23:50:50 +02:00
parent d7944c2464
commit ead021b789

View file

@ -55,7 +55,7 @@ add_to_existing_container: function(next_steps) {
<% end -%>
},
replace_todo: function(next_steps) {
$('#<%= dom_id(@todo) %>').html(<%=object_name%>.html_for_todo());
$('#<%= dom_id(@todo) %>').replaceWith(<%=object_name%>.html_for_todo());
next_steps.go();
},
hide_container: function(next_steps) {