mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-24 03:00:12 +01:00
replace element instead nesting another div inside existing div
This commit is contained in:
parent
d7944c2464
commit
ead021b789
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue