gitlabhq/app/views/team_members/create.js.haml

14 lines
519 B
Text
Raw Normal View History

- if @user_project_relation.valid?
2011-10-09 00:36:38 +03:00
:plain
2012-02-11 20:34:25 +02:00
$("#new_team_member").hide("slide", { direction: "right" }, 150, function(){
$("#team-table").show("slide", { direction: "left" }, 150, function() {
2012-02-11 20:34:25 +02:00
$("#new_team_member").remove();
$("#team-table").replaceWith("#{escape_javascript(render('projects/team'))}");
$(".add_new").show();
});
});
2011-10-09 00:36:38 +03:00
- else
:plain
2012-02-11 20:34:25 +02:00
$("#new_team_member").replaceWith("#{escape_javascript(render('form'))}");
2011-11-30 23:41:00 +02:00
$('select#team_member_user_id').chosen();