gitlabhq/app/views/team_members/create.js.haml
Dmitriy Zaporozhets bc3735004c Moving to rails 3.2
2012-02-11 20:34:25 +02:00

14 lines
510 B
Plaintext

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