Add one-offs to sortables
This commit is contained in:
@@ -11,7 +11,7 @@ $(document).ready ->
|
||||
text: (api) ->
|
||||
$(this).next().html()
|
||||
|
||||
$.each ['#habits', '#daily'], (index, list_id) ->
|
||||
$.each ['#habits', '#daily', '#one-offs'], (index, list_id) ->
|
||||
$(list_id).sortable
|
||||
axis: "y"
|
||||
dropOnEmpty: false
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
<div class='content'>
|
||||
<h2 class='title'>One-offs</h2>
|
||||
<div class='inner'>
|
||||
<ul id="daily">
|
||||
<ul id="one-offs">
|
||||
<% @one_time.each do |habit| %>
|
||||
<%= render :partial => "habit", :locals => { :habit => habit } %>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user