gitlabhq/app/views/deploy_keys/create.js.haml

10 lines
343 B
Plaintext
Raw Normal View History

2011-12-29 20:44:16 +01:00
- if @key.valid?
:plain
$("#new_key_dialog").dialog("close");
$("#keys-table .data").append("#{escape_javascript(render(:partial => 'show', :locals => {:key => @key} ))}");
$("#no_ssh_key_defined").hide();
- else
:plain
$("#new_key_dialog").empty();
$("#new_key_dialog").append("#{escape_javascript(render('form'))}");