Files
server/opt/psa/admin/htdocs/modules/panel-migrator/scripts/new-migration-unix.js
cutemeli 0bfc6c8425 Initial
2025-12-22 10:32:59 +00:00

22 lines
767 B
JavaScript

// Copyright 1999-2017. Plesk International GmbH. All Rights Reserved.
Jsw.onReady(function() {
var radioSSHAuthPassword = $('sourceServer-sourceSSHAuthType-password');
var radioSSHAuthKey = $('sourceServer-sourceSSHAuthType-key');
function updateSSHAuthType()
{
if (radioSSHAuthPassword.checked) {
$('sourceServer-sourceSSHPassword-form-row').show();
$('sourceServer-sourceSSHKeyPath-form-row').hide();
} else {
$('sourceServer-sourceSSHPassword-form-row').hide();
$('sourceServer-sourceSSHKeyPath-form-row').show();
}
}
radioSSHAuthPassword.observe('change', updateSSHAuthType);
radioSSHAuthKey.observe('change', updateSSHAuthType);
updateSSHAuthType();
});