mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-16 15:02:43 +00:00
feat: fill in ssh key title automatically. (#863)
This commit is contained in:
parent
a6751cec04
commit
40f4377717
2 changed files with 11 additions and 2 deletions
|
@ -1486,4 +1486,13 @@ $(function () {
|
|||
$('.list-search-style').html('.search-list li:not([data-title*="' + value + '"]) {display: none;}');
|
||||
}
|
||||
});
|
||||
|
||||
// Parse SSH Key
|
||||
$("#ssh-key-content").on('change paste keyup',function(){
|
||||
var value = $(this).val();
|
||||
var arrays = value.split(" ");
|
||||
if (arrays.length === 3 && arrays[2] !== "") {
|
||||
$("#ssh-key-title").val(arrays[2]);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue