forked from TracksApp/tracks
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix corner case that were failing the cucumber tests. On the calendar…
… page at the end of the month, a todo may occur twice on the page. This was not taken into account for update an destroy
- Loading branch information
Showing
6 changed files
with
36 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
*.tmproj | ||
.dotest | ||
/.emacs-project | ||
/.redcar | ||
config/database.yml | ||
config/site.yml | ||
config/deploy.rb | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,19 +32,24 @@ function show_empty_messages() { | |
|
||
function remove_todo_from_page() { | ||
<% if (@remaining_in_context == 0) && update_needs_to_hide_context | ||
# remove context with deleted todo | ||
# remove context with deleted todo | ||
-%> | ||
$('#c<%[email protected]_id%>').fadeOut(400, function() { | ||
$('#<%=dom_id(@todo)%>').remove(); | ||
}); | ||
<%= show_empty_message_in_source_container -%> | ||
$('#c<%[email protected]_id%>').fadeOut(400, function() { | ||
$('#<%=dom_id(@todo)%>').remove(); | ||
}); | ||
<%= show_empty_message_in_source_container -%> | ||
<% else | ||
# remove only the todo | ||
# remove only the todo | ||
-%> | ||
<%= show_empty_message_in_source_container %> | ||
$('#<%=dom_id(@todo)%>').slideUp(400, function() { | ||
$('#<%=dom_id(@todo)%>').remove(); | ||
}); | ||
<%= show_empty_message_in_source_container %> | ||
$('#<%=dom_id(@todo)%>').slideUp(400, function() { | ||
$('#<%=dom_id(@todo)%>').remove(); | ||
<% if source_view_is :calendar | ||
# in calendar view it is possible to have a todo twice on the page | ||
-%> | ||
$('#<%=dom_id(@todo)%>').remove(); | ||
<% end %> | ||
}); | ||
<% end -%> | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters