2011-10-08 23:36:38 +02:00
|
|
|
- if @team_member.valid?
|
|
|
|
:plain
|
|
|
|
$("#new_tm_dialog").dialog("close");
|
|
|
|
$("#team-table").append("#{escape_javascript(render(:partial => 'show', :locals => {:member => @team_member} ))}");
|
|
|
|
- else
|
|
|
|
:plain
|
|
|
|
$("#new_tm_dialog").empty();
|
|
|
|
$("#new_tm_dialog").append("#{escape_javascript(render('form'))}");
|
2011-11-30 22:41:00 +01:00
|
|
|
$('select#team_member_user_id').chosen();
|