| ... | @@ -2,6 +2,8 @@ import AddSshKeyValidation from '~/profile/add_ssh_key_validation'; |
... | @@ -2,6 +2,8 @@ import AddSshKeyValidation from '~/profile/add_ssh_key_validation'; |
|
|
|
|
|
|
|
document.addEventListener('DOMContentLoaded', () => {
|
|
document.addEventListener('DOMContentLoaded', () => {
|
|
|
const input = document.querySelector('.js-add-ssh-key-validation-input');
|
|
const input = document.querySelector('.js-add-ssh-key-validation-input');
|
|
|
|
if (!input) return;
|
|
|
|
|
|
|
const warning = document.querySelector('.js-add-ssh-key-validation-warning');
|
|
const warning = document.querySelector('.js-add-ssh-key-validation-warning');
|
|
|
const originalSubmit = input.form.querySelector('.js-add-ssh-key-validation-original-submit');
|
|
const originalSubmit = input.form.querySelector('.js-add-ssh-key-validation-original-submit');
|
|
|
const confirmSubmit = warning.querySelector('.js-add-ssh-key-validation-confirm-submit');
|
|
const confirmSubmit = warning.querySelector('.js-add-ssh-key-validation-confirm-submit');
|
| ... | |
... | |
| ... | | ... | |