Adjusted: Webhosting: In webhosting hostname support disabledmode, used

domainnames by a site are not shown when creating a site.
This commit is contained in:
robvde 2012-10-15 07:16:24 +04:00
parent 389dfe7c7b
commit d323eeb4df
3 changed files with 39 additions and 9 deletions

View file

@ -62,10 +62,10 @@ namespace WebsitePanel.Portal
private void ToggleControls()
{
rowDedicatedIP.Visible = rbDedicatedIP.Checked;
PackageContext cntx = PackagesHelper.GetCachedPackageContext(PanelSecurity.PackageId);
rowDedicatedIP.Visible = rbDedicatedIP.Checked;
if (Utils.CheckQouta(Quotas.WEB_ENABLEHOSTNAMESUPPORT, cntx))
{
txtHostName.Visible = chkIgnoreGlobalDNSRecords.Visible = lblIgnoreGlobalDNSRecords.Visible = lblTheDotInTheMiddle.Visible = true;
@ -78,6 +78,7 @@ namespace WebsitePanel.Portal
txtHostName.Visible = chkIgnoreGlobalDNSRecords.Visible = lblIgnoreGlobalDNSRecords.Visible = lblTheDotInTheMiddle.Visible = false;
chkIgnoreGlobalDNSRecords.Checked = true;
txtHostName.Text = "";
domainsSelectDomainControl.HideWebSites = true;
}
}