Skip to content

Commit

Permalink
Merge pull request #324 from skateman/optimize-trees-fix
Browse files Browse the repository at this point in the history
Fixed DOM element names for Utilization & Bottleneck tree select
  • Loading branch information
himdel authored Feb 8, 2017
2 parents 035a843 + 05bed9e commit 6c1bbf9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/assets/javascripts/miq_tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ function miqOnClickIncludeDomainPrefix() {

function miqOnClickSelectOptimizeTreeNode(id) {
var tree;
if (miqDomElementExists('miq_capacity_utilization')) {
if (miqDomElementExists('utilization_accord')) {
tree = "utilization_tree";
} else if (miqDomElementExists('miq_capacity_bottlenecks')) {
} else if (miqDomElementExists('bottlenecks_accord')) {
tree = "bottlenecks_tree";
}
if (id.split('-')[1].split('_')[0] == 'folder' ) {
Expand Down

0 comments on commit 6c1bbf9

Please sign in to comment.