fix #860. The calendar view does not have a form in the right column for a new todo. The js for updating todos expects this form to update the autocompleter in case a new project or context is created with the update of the todo

fixed with a hack
This commit is contained in:
Reinier Balt 2009-03-24 22:25:50 +01:00
parent 1dca4747f3
commit a4de0e62af
3 changed files with 20 additions and 10 deletions

View file

@ -448,7 +448,10 @@ class TodosController < ApplicationController
def calendar
@source_view = params['_source_view'] || 'calendar'
@page_title = "TRACKS::Calendar"
@projects = current_user.projects.find(:all)
@default_project_context_name_map = build_default_project_context_name_map(@projects).to_json
due_today_date = Time.zone.now
due_this_week_date = Time.zone.now.end_of_week
due_next_week_date = due_this_week_date + 7.days