gitlab-org--gitlab-foss/app/views/keys/create.js.haml
2011-10-09 00:36:38 +03:00

8 lines
300 B
Text

- if @key.valid?
:plain
$("#new_key_dialog").dialog("close");
$("#keys-table").append("#{escape_javascript(render(:partial => 'show', :locals => {:key => @key} ))}");
- else
:plain
$("#new_key_dialog").empty();
$("#new_key_dialog").append("#{escape_javascript(render('form'))}");