2013-01-22 12:20:39 -05:00
|
|
|
- if @user_project_relation.valid?
|
2011-10-08 17:36:38 -04:00
|
|
|
:plain
|
2012-02-11 13:34:25 -05:00
|
|
|
$("#new_team_member").hide("slide", { direction: "right" }, 150, function(){
|
2012-06-03 18:37:27 -04:00
|
|
|
$("#team-table").show("slide", { direction: "left" }, 150, function() {
|
2012-02-11 13:34:25 -05:00
|
|
|
$("#new_team_member").remove();
|
2012-01-14 12:54:41 -05:00
|
|
|
$("#team-table").replaceWith("#{escape_javascript(render('projects/team'))}");
|
|
|
|
$(".add_new").show();
|
|
|
|
});
|
|
|
|
});
|
2011-10-08 17:36:38 -04:00
|
|
|
- else
|
|
|
|
:plain
|
2012-02-11 13:34:25 -05:00
|
|
|
$("#new_team_member").replaceWith("#{escape_javascript(render('form'))}");
|
2011-11-30 16:41:00 -05:00
|
|
|
$('select#team_member_user_id').chosen();
|