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

15 lines
372 B
Plaintext
Raw Normal View History

2012-07-10 19:15:33 +02:00
%h3.page_title New 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
});