remove redundant code

This commit is contained in:
Carsten Otto 2015-05-22 22:55:58 +02:00
parent 131053fc1f
commit e7495e32b7
2 changed files with 2 additions and 2 deletions

View file

@ -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() {

View file

@ -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() {