2011-02-13 12:58:41 +01:00
|
|
|
# TODO: is this DEAD code?
|
|
|
|
|
|
2007-03-30 04:36:52 +00:00
|
|
|
if @project.default_context.nil?
|
2010-10-31 21:27:13 +08:00
|
|
|
page.notify :notice, t('projects.default_context_removed'), 5.0
|
2007-03-30 04:36:52 +00:00
|
|
|
else
|
|
|
|
|
if source_view_is :project
|
2008-03-20 19:04:07 +00:00
|
|
|
page['default_context_name_id'].value = @project.default_context.name
|
2007-03-30 04:36:52 +00:00
|
|
|
page['todo_context_name'].value = @project.default_context.name
|
|
|
|
|
end
|
2010-10-31 21:27:13 +08:00
|
|
|
page.notify :notice, t('projects.default_context_set', :default_context => @project.default_context.name), 5.0
|
2007-03-30 04:36:52 +00:00
|
|
|
end
|
|
|
|
|
page.hide "busy"
|
|
|
|
|
|