gitlabhq/app/views/team_members/create.js.haml
Dmitriy Zaporozhets d378468794 v1.0
2011-10-13 04:00:00 +03:00

10 lines
377 B
Plaintext

- 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'))}");
$('select#team_member_user_id').selectmenu({width:300});