gitlabhq/app/views/team_members/create.js.haml
2012-01-14 19:54:41 +02:00

14 lines
510 B
Plaintext

- if @team_member.valid?
:plain
$("#team_member_new").hide("slide", { direction: "right" }, 150, function(){
$("#team-table").show("slide", { direction: "left" }, 150, function() {
$("#team_member_new").remove();
$("#team-table").replaceWith("#{escape_javascript(render('projects/team'))}");
$(".add_new").show();
});
});
- else
:plain
$("#team_member_new").replaceWith("#{escape_javascript(render('form'))}");
$('select#team_member_user_id').chosen();