remove highlight effect & fadeout

This commit is contained in:
Tyler Renelle 2012-02-08 23:43:17 -05:00
parent e715679281
commit 8c494a189a

View file

@ -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"