mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
7386: JSF component to view, add, edit and remove deployment server configuration Added new step to create/edit website wizard to collect and edit deployment server configuration Enabled the copying of deployment server config when creating one web project from another Added new icons to tell apart Alfresco Server vs. File System deployments Updated UI to use 'friendly' server name when possible git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@8351 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
36 lines
1017 B
JavaScript
36 lines
1017 B
JavaScript
Alfresco.deployServerTypeChanged = function()
|
|
{
|
|
var typeDropDown = document.getElementById('wizard:wizard-body:deployServerType');
|
|
if (typeDropDown != null)
|
|
{
|
|
var selectedType = typeDropDown.options[typeDropDown.selectedIndex].value;
|
|
|
|
// show or hide the label
|
|
var autoDeployLabel = document.getElementById('autoDeployLabel');
|
|
if (autoDeployLabel != null)
|
|
{
|
|
if (selectedType == "test")
|
|
{
|
|
autoDeployLabel.style.display = "none";
|
|
}
|
|
else
|
|
{
|
|
autoDeployLabel.style.display = "block";
|
|
}
|
|
}
|
|
|
|
// show or hide the checkbox
|
|
var autoDeployCheckbox = document.getElementById('wizard:wizard-body:autoDeployCheckbox');
|
|
if (autoDeployCheckbox != null)
|
|
{
|
|
if (selectedType == "test")
|
|
{
|
|
autoDeployCheckbox.style.display = "none";
|
|
}
|
|
else
|
|
{
|
|
autoDeployCheckbox.style.display = "block";
|
|
}
|
|
}
|
|
}
|
|
} |