Commit e0f4a37f3d9fba676c60d28677dfd1d7c9dfd5ac
1 parent
1beb8416
Exists in
master
and in
4 other branches
update project's dashboard every 5 minutes
Showing
1 changed file
with
5 additions
and
0 deletions
Show diff stats
app/views/projects/show.html.haml
| @@ -21,3 +21,8 @@ | @@ -21,3 +21,8 @@ | ||
| 21 | %h3 Talk | 21 | %h3 Talk |
| 22 | =render "projects/recent_messages" | 22 | =render "projects/recent_messages" |
| 23 | 23 | ||
| 24 | +:javascript | ||
| 25 | + function updateDashboard(){ | ||
| 26 | + $('#content-container').load("#{escape_javascript(project_path(@project))} #content-container>*"); | ||
| 27 | + } | ||
| 28 | + setInterval("updateDashboard()", 300000); |