From 1a13a5f0aab8418ebdbab1dce22b38c9fafd787f Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Mon, 6 Feb 2012 13:38:37 -0500 Subject: [PATCH] Add one-offs to sortables --- app/assets/javascripts/habits.js.coffee | 2 +- app/views/habits/index.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/habits.js.coffee b/app/assets/javascripts/habits.js.coffee index 94520990bb..133148c0d1 100644 --- a/app/assets/javascripts/habits.js.coffee +++ b/app/assets/javascripts/habits.js.coffee @@ -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 diff --git a/app/views/habits/index.html.erb b/app/views/habits/index.html.erb index bf29ae6a52..efe98bbd4e 100644 --- a/app/views/habits/index.html.erb +++ b/app/views/habits/index.html.erb @@ -37,7 +37,7 @@

One-offs

-
    +
      <% @one_time.each do |habit| %> <%= render :partial => "habit", :locals => { :habit => habit } %> <% end %>