Adds task ordering functionality for a round

Review Request #148 - Created April 20, 2010 and submitted

Information
Andrei Grigorean
infoarena
Reviewers
hackers
- Adds a new tab for the round edit section.
- Displays a Tasks macro having drag and drop enabled.
- Posts new task order using JavaScript.
- Takes care of changes when a task is deleted or a task list for a round updated.

Bogdan-Cristian Tătăroiu
Andrei Grigorean

trunk/common/db/round_task.php (Diff revision 1)
 
 
Renamed and moved to common/db/task.php
trunk/common/db/round_task.php (Diff revision 1)
 
 
Added comments
trunk/www/controllers/round.php (Diff revision 1)
 
 
Added some checking. They shouldn't be able to do anything stupid now.
trunk/www/controllers/round.php (Diff revision 1)
 
 
Switched to using round_get_tasks.
trunk/www/controllers/round.php (Diff revision 1)
 
 
Fixed.
trunk/www/index.php (Diff revision 1)
 
 
Fixed.
trunk/www/views/round_task_order.php (Diff revision 1)
 
 
Changed the script because it had a bug. Tested in Firefox, Chrome, Opera.
trunk/www/views/round_task_order.php (Diff revision 1)
 
 
I'm going to take care of colour parity in the next change.
Bogdan-Cristian Tătăroiu
I don't think the ordering is preserved correctly when using the edit-parameters controller. It is probably ok to commit this anyway since it's in a separate branch.
trunk/www/controllers/round.php (Diff revision 2)
 
 
This is from the next change I suppose.
Loading...