mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-27 12:28:48 +01:00
remove redundant code
This commit is contained in:
parent
131053fc1f
commit
e7495e32b7
2 changed files with 2 additions and 2 deletions
|
|
@ -28,7 +28,7 @@ function show_empty_messages() {
|
|||
}
|
||||
|
||||
function remove_todo_from_page() {
|
||||
<% if (@remaining_in_context == 0) && update_needs_to_hide_container
|
||||
<% if update_needs_to_hide_container
|
||||
# remove context with deleted todo
|
||||
-%>
|
||||
$('#<%=item_container_id(@todo)%>').fadeOut(400, function() {
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ var <%= object_name %> = {
|
|||
redirect_to(path);
|
||||
},
|
||||
remove_todo: function(next_steps) {
|
||||
<% if (@remaining_in_context == 0) && update_needs_to_hide_container
|
||||
<% if update_needs_to_hide_container
|
||||
# remove context with deleted todo
|
||||
-%>
|
||||
$('#<%= item_container_id(@original_item)%>').slideUp(400, function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue