BigW Consortium Gitlab

create.js.haml 509 Bytes
Newer Older
gitlabhq committed
1 2
- if @team_member.valid?
  :plain
3
    $("#new_team_member").hide("slide", { direction: "right" }, 150, function(){
4
      $("#team-table").show("slide", { direction: "left" }, 150, function() {
5
        $("#new_team_member").remove();
6 7 8 9
        $("#team-table").replaceWith("#{escape_javascript(render('projects/team'))}");
        $(".add_new").show();
      });
    });
gitlabhq committed
10 11
- else
  :plain
12
    $("#new_team_member").replaceWith("#{escape_javascript(render('form'))}");
13
    $('select#team_member_user_id').chosen();