Added TeamMembers.js file

This commit is contained in:
Dmitriy Zaporozhets 2013-05-30 10:57:10 +03:00
parent 01a8f3886e
commit 56b42f58e7
2 changed files with 8 additions and 0 deletions

View file

@ -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()

View file

@ -0,0 +1,6 @@
class TeamMembers
constructor: ->
$('.team-members .project-access-select').on "change", ->
$(this.form).submit()
@TeamMembers = TeamMembers