domain page - fix a bug that newly created domain appears twice in domain tree.

This commit is contained in:
Jessica Wang 2010-12-13 13:58:36 -08:00
parent 85f3a48744
commit 84edea9c0f
1 changed files with 3 additions and 2 deletions

View File

@ -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));
}
});
},