mirror of https://github.com/apache/cloudstack.git
new UI - remove non-used html code.
This commit is contained in:
parent
af864390c4
commit
444aef3a29
|
|
@ -175,19 +175,6 @@
|
|||
</div>
|
||||
<!-- domain detail panel (end) -->
|
||||
|
||||
<!-- treenode template (begin) -->
|
||||
<div id="treenode_template" class="tree_levelspanel" style="display:none">
|
||||
<div class="tree_levelsbox" style="margin-left:20px;">
|
||||
<div id="domain_title_container" class="tree_levels">
|
||||
<div id="domain_expand_icon" class="zonetree_closedarrows"></div>
|
||||
<div id="domain_name" class="tree_links">Domain Name</div>
|
||||
</div>
|
||||
<div id="domain_children_container" style="display:none">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- treenode template (end) -->
|
||||
|
||||
<!-- admin account tab template (begin) -->
|
||||
<div class="grid_container" id="admin_account_tab_template" style="display: none">
|
||||
<div class="grid_header">
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ function afterLoadDomainJSP() {
|
|||
var childParentMap = {}; //map childDomainId to parentDomainId
|
||||
var domainIdNameMap = {}; //map domainId to domainName
|
||||
|
||||
var $treeContentBox = $("#leftmenu_domain_tree");
|
||||
var $leftmenuDomainTree = $("#leftmenu_domain_tree");
|
||||
var $treenodeTemplate = $("#domain_tree_node_template");
|
||||
var $detailsTab = $("#right_panel_content #tab_content_details");
|
||||
var $resourceLimitsTab = $("#right_panel_content #tab_content_resource_limits");
|
||||
|
|
@ -248,7 +248,7 @@ function afterLoadDomainJSP() {
|
|||
|
||||
//draw root node
|
||||
function drawRootNode(rootDomainId) {
|
||||
$treeContentBox.empty();
|
||||
$leftmenuDomainTree.empty();
|
||||
$.ajax({
|
||||
data: createURL("command=listDomains&id="+rootDomainId+"&pageSize=-1"), //pageSize=-1 will return all items (no limitation)
|
||||
dataType: "json",
|
||||
|
|
@ -256,7 +256,7 @@ function afterLoadDomainJSP() {
|
|||
success: function(json) {
|
||||
var domains = json.listdomainsresponse.domain;
|
||||
if (domains != null && domains.length > 0) {
|
||||
var node = drawNode(domains[0], defaultRootLevel, $treeContentBox);
|
||||
var node = drawNode(domains[0], defaultRootLevel, $leftmenuDomainTree);
|
||||
|
||||
var treeLevelsbox = node.find(".tree_levelsbox"); //root node shouldn't have margin-left:20px
|
||||
if(treeLevelsbox!=null && treeLevelsbox.length >0)
|
||||
|
|
|
|||
Loading…
Reference in New Issue