Skip to content

Instantly share code, notes, and snippets.

@stevecastaneda
Created April 4, 2011 23:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevecastaneda/902696 to your computer and use it in GitHub Desktop.
Save stevecastaneda/902696 to your computer and use it in GitHub Desktop.
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