Changed the instances of :project (referring to flagging whether we are on a project page) for an @on_page = "project" variable. In forms, I send a request parameter @param["on_project_page"] to set @on_page to "project" before rendering the partial.

It works fine except in the following circumstances, which I can't seem to figure out:

* If you edit an action on a project page, it will render with '[P]' link until you refresh
* If you mark an action completed on a project page, it will also render with a '[P]' link until you refresh.

However, adding a new action on a project page renders properly immediately.



git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@167 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
bsag 2005-12-07 19:06:24 +00:00
parent 1424b12834
commit 7d33019265
11 changed files with 23 additions and 14 deletions

View file

@ -24,6 +24,7 @@ class ContextController < ApplicationController
def show
init
init_todos
@on_page = "context"
@page_title = "TRACKS::Context: #{@context.name}"
end