tracks/app/views/projects/update_default_context.js.rjs
Marcus Ilgner fd3f69d927 Changed code to support basic i18n.
Added RubyMine configuration and rvm setup to .gitignore.
2010-11-09 16:31:26 +08:00

11 lines
416 B
Text

if @project.default_context.nil?
page.notify :notice, t('projects.default_context_removed'), 5.0
else
if source_view_is :project
page['default_context_name_id'].value = @project.default_context.name
page['todo_context_name'].value = @project.default_context.name
end
page.notify :notice, t('projects.default_context_set', :default_context => @project.default_context.name), 5.0
end
page.hide "busy"