From 84edea9c0f1b8f4e37676f55da8f59e345bf5e9e Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Mon, 13 Dec 2010 13:58:36 -0800 Subject: [PATCH] domain page - fix a bug that newly created domain appears twice in domain tree. --- ui/scripts/cloud.core.domain.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/scripts/cloud.core.domain.js b/ui/scripts/cloud.core.domain.js index 3246fc869ae..37a4b649899 100644 --- a/ui/scripts/cloud.core.domain.js +++ b/ui/scripts/cloud.core.domain.js @@ -196,8 +196,9 @@ function initAddDomainDialog() { var $expandIcon = $parentDomainNode.find("#domain_expand_icon_"+item.parentdomainid); if($expandIcon.hasClass("expanded_close")) - $expandIcon.click(); //expand parentDomain node - drawNode(item, $("#domain_children_container_"+item.parentdomainid)); + $expandIcon.click(); //expand parentDomain node + else + drawNode(item, $("#domain_children_container_"+item.parentdomainid)); } }); },