Skip to content

Commit

Permalink
use hidden class instead of hide/show
Browse files Browse the repository at this point in the history
  • Loading branch information
petervo committed Oct 18, 2017
1 parent 415603b commit 668d674
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
10 changes: 3 additions & 7 deletions pkg/shell/indexes.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,6 @@ var phantom_checkpoint = phantom_checkpoint || function () { };
$("#host-nav-item span.pficon-container-node").css("color", color);

if (machine) {

$("#machine-link span").text(machine.label);
$("#machine-link").attr("title", machine.label);
} else {
Expand Down Expand Up @@ -323,14 +322,11 @@ var phantom_checkpoint = phantom_checkpoint || function () { };
});

$("#host-nav-item").toggleClass("active", !!machine);
if (machine) {
if (machine)
update_sidebar(machine, state, compiled);
$("#host-nav").show();
} else {
$("#host-nav").hide();
}
update_machine_links(machine);

$("#host-nav").toggleClass("hidden", !machine);
update_machine_links(machine);
$('.flex-body').toggleClass("single-nav", $(".dashboard-link").length < 2);
}

Expand Down
1 change: 1 addition & 0 deletions pkg/shell/switcher.less
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
width: 15em;
position: relative;
z-index: 2;
opacity: 1;

/* Fade start and end of the host menu to indicate more content is available */

Expand Down

0 comments on commit 668d674

Please sign in to comment.