mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-18 08:10:13 +01:00
* get public/local variables correct for all js * get i18n string in toggle_star for todos Signed-off-by: Reinier Balt <lrbalt@gmail.com>
13 lines
444 B
Text
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"
|
|
|