diff --git a/app/assets/javascripts/dispatcher.js.coffee b/app/assets/javascripts/dispatcher.js.coffee index 6e2d1592e32..fb149b7f677 100644 --- a/app/assets/javascripts/dispatcher.js.coffee +++ b/app/assets/javascripts/dispatcher.js.coffee @@ -30,6 +30,8 @@ class Dispatcher new Project() when 'walls:show' new Wall(project_id) + when 'teams:members:index' + new TeamMembers() switch path.first() when 'admin' then new Admin() diff --git a/app/assets/javascripts/team_members.js.coffee b/app/assets/javascripts/team_members.js.coffee new file mode 100644 index 00000000000..5eaa8ad4ff9 --- /dev/null +++ b/app/assets/javascripts/team_members.js.coffee @@ -0,0 +1,6 @@ +class TeamMembers + constructor: -> + $('.team-members .project-access-select').on "change", -> + $(this.form).submit() + +@TeamMembers = TeamMembers