Files
alfresco-community-repo/source/web/scripts/ajax/deployment.js
Gavin Cornwell 338914016b Merged V2.2 to HEAD
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
2008-02-21 14:35:30 +00:00

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";
}
}
}
}