diff --git a/app/assets/javascripts/modules/team_members.js.coffee b/app/assets/javascripts/modules/team_members.js.coffee index 5a0d5e52d..a36e07a3f 100644 --- a/app/assets/javascripts/modules/team_members.js.coffee +++ b/app/assets/javascripts/modules/team_members.js.coffee @@ -90,8 +90,7 @@ class app.TeamMembers toggle_members() load_members() - $(document).on 'click', '.members li #remove_member', (e) -> + $(document).on 'click', '.members li .remove_member', (e) -> delete_member(e) new TeamMembers - diff --git a/app/assets/javascripts/templates/team_member_entry.hbs.erb b/app/assets/javascripts/templates/team_member_entry.hbs.erb index b2801964a..165461bb1 100644 --- a/app/assets/javascripts/templates/team_member_entry.hbs.erb +++ b/app/assets/javascripts/templates/team_member_entry.hbs.erb @@ -3,12 +3,12 @@
  • {{label}} {{#if admin}} - Remove + <%= image_tag("penguin.svg", class: "admin", alt:"Admin" ) %> {{/if}} {{#if deletable}} - Remove + <%= image_tag("remove.svg", class: "remove_member", alt:"Remove" ) %> {{/if}}
  • diff --git a/app/assets/stylesheets/teammember.scss b/app/assets/stylesheets/teammember.scss index d3dbe86dd..80cbafcae 100644 --- a/app/assets/stylesheets/teammember.scss +++ b/app/assets/stylesheets/teammember.scss @@ -37,6 +37,6 @@ float: right; } -li #penguin{ +li .admin{ float: right; }