mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-10 01:24:19 +01:00
Updated to svn tags/tracks-1.6
This commit is contained in:
parent
103fcb8049
commit
02496f2d44
2274 changed files with 0 additions and 0 deletions
11
app/views/projects/update_default_context.js.rjs
Normal file
11
app/views/projects/update_default_context.js.rjs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
if @project.default_context.nil?
|
||||
page.notify :notice, "Removed default context", 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, "Set project's default context to #{@project.default_context.name}", 5.0
|
||||
end
|
||||
page.hide "busy"
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue