Lists sortable, but not persisting

This commit is contained in:
Tyler Renelle
2012-06-08 15:19:11 -04:00
parent 36bbd6a222
commit d49dcc4ace
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -57,11 +57,11 @@ ready (model) ->
list = model.at "_#{type}List"
# Make the list draggable using jQuery UI
ul = $("\##{type}s")
ul = $(".#{type}s ul")
ul.sortable
handle: '.handle'
axis: 'y'
containment: "\#dragbox-#{type}"
# containment: ".#{type}s .dragbox"
update: (e, ui) ->
item = ui.item[0]
domId = item.id