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

14 lines
510 B
Plaintext
Raw Normal View History

2011-10-08 23:36:38 +02:00
- 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();
});
});
2011-10-08 23:36:38 +02:00
- else
:plain
$("#team_member_new").replaceWith("#{escape_javascript(render('form'))}");
2011-11-30 22:41:00 +01:00
$('select#team_member_user_id').chosen();