2011-10-08 17:36:38 -04:00
|
|
|
- if @key.valid?
|
|
|
|
:plain
|
|
|
|
$("#new_key_dialog").dialog("close");
|
2012-03-26 05:11:02 -04:00
|
|
|
$("#keys-table .data").append("#{escape_javascript(render(:partial => 'show', :locals => {:key => @key}))}");
|
2011-11-22 15:26:07 -05:00
|
|
|
$("#no_ssh_key_defined").hide();
|
2011-10-08 17:36:38 -04:00
|
|
|
- else
|
|
|
|
:plain
|
|
|
|
$("#new_key_dialog").empty();
|
|
|
|
$("#new_key_dialog").append("#{escape_javascript(render('form'))}");
|