BigW Consortium Gitlab

create.js.haml 519 Bytes
Newer Older
1
- if @user_project_relation.valid?
gitlabhq committed
2
  :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();