Drag todos between contexts

Closes #1020
This commit is contained in:
Eric Allen 2010-04-10 16:08:09 -04:00
parent 05cbea50aa
commit 67df223488
5 changed files with 45 additions and 5 deletions

View file

@ -122,7 +122,7 @@ module TodosHelper
:title => 'Drag onto another action to make it depend on that action',
:class => 'grip') +
image_tag('blank.png', :width => 16, :height => 16, :border => 0,
:title => "Drop an action to make it depend on this action", :class => 'successor_target')
:title => "Drop an action to make it depend on this action", :class => 'successor_target drop_target')
end
end

View file

@ -16,4 +16,5 @@
</div>
<%= render :partial => "todos/todo", :collection => @not_done, :locals => { :parent_container_type => "context" } %>
</div><!-- [end:items] -->
<div id="c_<%=context.id%>_target" class="context_target drop_target"></div>
</div><!-- [end:c<%= context.id %>] -->

View file

@ -153,3 +153,5 @@ else
page.show 'error_status'
page.replace_html 'error_status', "#{error_messages_for('todo')}"
end
page << "enable_rich_interaction();"