diff --git a/app/assets/javascripts/habits.js.coffee b/app/assets/javascripts/habits.js.coffee index cfcbcc04f6..9defe40dee 100644 --- a/app/assets/javascripts/habits.js.coffee +++ b/app/assets/javascripts/habits.js.coffee @@ -4,9 +4,6 @@ $(document).ready -> - $(".one-time a.vote-link").click -> - $(this).parent().fadeOut() - $.each ['#habits', '#daily', '#one-offs'], (index, list_id) -> $(list_id).sortable axis: "y" @@ -20,15 +17,4 @@ $(document).ready -> type: "post" url: "/habits/sort" data: $(list_id).sortable("serialize") - dataType: "script" - complete: (request) -> - $(list_id).effect "highlight" - -(($) -> - $.fn.highlight = -> - $(this).css - color: "red" - background: "yellow" - - $(this).fadeIn() -) jQuery + dataType: "script" \ No newline at end of file