You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

sshkey-helper.js 323B

12345678910
  1. export function initSshKeyFormParser() {
  2. // Parse SSH Key
  3. $('#ssh-key-content').on('change paste keyup', function () {
  4. const arrays = $(this).val().split(' ');
  5. const $title = $('#ssh-key-title');
  6. if ($title.val() === '' && arrays.length === 3 && arrays[2] !== '') {
  7. $title.val(arrays[2]);
  8. }
  9. });
  10. }