From 49e2e6776eddfa10e783b8c99a864107bd3674a4 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Wed, 5 Jan 2011 19:30:14 -0800 Subject: [PATCH] bug 7713: Add Zone Wizard - Add IP Range to advanced zone - fix a bug that domain field and account field is not hidden when scope is account-specific and VLAN is changed from tagged to untagged. --- ui/scripts/cloud.core.resource.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/scripts/cloud.core.resource.js b/ui/scripts/cloud.core.resource.js index 7d8d4a69a73..4f1d9efb91d 100644 --- a/ui/scripts/cloud.core.resource.js +++ b/ui/scripts/cloud.core.resource.js @@ -1007,8 +1007,7 @@ function initAddZoneWizard() { } return false; }); - - //.... + $addZoneWizard.find("#step4").find("#add_publicip_vlan_tagged").unbind("change").bind("change", function(event) { if ($(this).val() == "tagged") { $addZoneWizard.find("#step4").find("#add_publicip_vlan_vlan_container").show(); @@ -1022,6 +1021,8 @@ function initAddZoneWizard() { $addZoneWizard.find("#step4").find("#add_publicip_vlan_scope").empty().append(''); } + + $addZoneWizard.find("#step4").find("#add_publicip_vlan_scope").change(); return false; }); @@ -1036,8 +1037,7 @@ function initAddZoneWizard() { } return false; }); - //.... - + var domainDropdown = $addZoneWizard.find("#domain_dropdown").empty(); $.ajax({ data: createURL("command=listDomains"),