#300: Added infrastructure for drag and drop dependency creation

This commit is contained in:
Henrik Bohre 2009-06-10 00:07:23 +02:00 committed by Eric Allen
parent c8b442cc41
commit fe066e3bcb
4 changed files with 33 additions and 5 deletions

View file

@ -140,6 +140,15 @@ class TodosController < ApplicationController
format.xml { render :xml => @todo.to_xml( :root => 'todo', :except => :user_id ) }
end
end
def add_predecessor
logger.debug "add_predecessor"
@predecessor = Todo.find(params['predecessor'])
@successor = Todo.find(params['successor'])
respond_to do |format|
format.js
end
end
# Toggles the 'done' status of the action
#