Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
After the refactor...
// Remove the task from the UI
$("#task_<%= @task.id %>").slideUp("slow", function() {
// Reload the tasks
$("#tasks").html("<%= escape_javascript(render(:partial => 'tasks/tasks'))%>");
// Highlight the task that was rescheduled
$("#task_<%= @task.id %>").effect("highlight", {}, 1250);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment