gitlabhq/app/views/keys/new.html.haml

15 lines
379 B
Text
Raw Normal View History

%h3.page_title Add an SSH Key
%hr
2011-10-08 23:36:38 +02:00
= render 'form'
:javascript
$('#key_key').on('keyup', function(){
var title = $('#key_title'),
val = $('#key_key').val(),
key_mail = val.match(/([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+|\.[a-zA-Z0-9._-]+)/gi);
if( key_mail && key_mail.length > 0 && title.val() == '' ){
$('#key_title').val( key_mail );
}
2012-07-10 19:15:33 +02:00
});