Commit e0f4a37f3d9fba676c60d28677dfd1d7c9dfd5ac

Authored by Nihad Abbasov
1 parent 1beb8416

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 21 %h3 Talk
22 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);
... ...