gitlab-org--gitlab-foss/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 17:36:38 -04: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 13:15:33 -04:00
});