mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-24 03:00:12 +01:00
Update sidebar when project status is changed
This commit is contained in:
parent
424d26a84c
commit
7eb29194c3
2 changed files with 4 additions and 0 deletions
|
|
@ -126,6 +126,7 @@ class ProjectsController < ApplicationController
|
|||
@active_projects_count = current_user.projects.active.count
|
||||
@hidden_projects_count = current_user.projects.hidden.count
|
||||
@completed_projects_count = current_user.projects.completed.count
|
||||
init_data_for_sidebar
|
||||
render :template => 'projects/update.js.rjs'
|
||||
return
|
||||
elsif boolean_param('update_status')
|
||||
|
|
|
|||
|
|
@ -27,3 +27,6 @@ else
|
|||
page << "defaultContexts = #{default_contexts_for_autocomplete};"
|
||||
page << "defaultTags = #{default_tags_for_autocomplete};"
|
||||
end
|
||||
|
||||
page.replace_html "sidebar", :file => 'sidebar/sidebar.html.erb'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue