Files
server/opt/psa/admin/htdocs/modules/panel-migrator/scripts/new-migration-remote-smarter-mail.js
2026-01-07 20:52:11 +01:00

28 lines
1.3 KiB
JavaScript

// Copyright 1999-2017. Plesk International GmbH. All Rights Reserved.
Jsw.onReady(function() {
var radioRemoteSmarterMailAutomaticDeploy = $(
'remoteSmarterMailServer-targetRemoteSmarterMailRPCAgentDeployMode-automatic'
);
var radioRemoteSmarterMailManualDeploy = $(
'remoteSmarterMailServer-targetRemoteSmarterMailRPCAgentDeployMode-manual'
);
function updateRemoteSmarterMailRPCAgentDeployType()
{
if (radioRemoteSmarterMailAutomaticDeploy.checked) {
$('remoteSmarterMailServer-targetRemoteSmarterMailWindowsLogin-form-row').show();
$('remoteSmarterMailServer-targetRemoteSmarterMailWindowsPassword-form-row').show();
$('remoteSmarterMailServer-rpcAgentDownload-form-row').hide();
} else {
$('remoteSmarterMailServer-targetRemoteSmarterMailWindowsLogin-form-row').hide();
$('remoteSmarterMailServer-targetRemoteSmarterMailWindowsPassword-form-row').hide();
$('remoteSmarterMailServer-rpcAgentDownload-form-row').show();
}
}
radioRemoteSmarterMailAutomaticDeploy.observe('change', updateRemoteSmarterMailRPCAgentDeployType);
radioRemoteSmarterMailManualDeploy.observe('change', updateRemoteSmarterMailRPCAgentDeployType);
updateRemoteSmarterMailRPCAgentDeployType();
});