Adding to daily list as well (need to refactor)

This commit is contained in:
Tyler Renelle 2012-02-01 17:03:32 -05:00
parent a6079d6469
commit 1b41564a6c

View file

@ -19,6 +19,24 @@ $(document).ready ->
$("#habits").effect "highlight"
url: "/habits/sort"
$(document).ready ->
$("#daily").sortable
axis: "y"
dropOnEmpty: false
cursor: "move"
items: "li"
opacity: 0.4
scroll: true
update: ->
$.ajax
type: "post"
data: $("#daily").sortable("serialize")
dataType: "script"
complete: (request) ->
$("#daily").effect "highlight"
url: "/habits/sort"
(($) ->
$.fn.highlight = ->