mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-11 09:54:21 +01:00
#300: Added infrastructure for drag and drop dependency creation
This commit is contained in:
parent
c8b442cc41
commit
fe066e3bcb
4 changed files with 33 additions and 5 deletions
|
|
@ -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
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue