tracks/app/views/projects/update_default_context.js.rjs
Reinier Balt 24ef0ced32 fix #1102 add spinner to autocomplete and...
* get public/local variables correct for all js
* get i18n string in toggle_star for todos

Signed-off-by: Reinier Balt <lrbalt@gmail.com>
2011-02-13 12:58:41 +01:00

13 lines
444 B
Text

# TODO: is this DEAD code?
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"