Skip to content

Commit

Permalink
Only show MVP if it has entries
Browse files Browse the repository at this point in the history
  • Loading branch information
eljeffeg committed Nov 8, 2019
1 parent 5fcd08d commit 943d2f7
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions static/js/pages/scoreboard/summary.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,16 +90,20 @@ function changeDisplay() {
$(".hintcol").fadeOut("slow", function() {
$(".lastflagcol").fadeIn("slow");
});
$("#scoreboard_right_image").fadeOut("slow", function() {
$("#scoreboard_mvp").fadeIn("slow");
});
if ($("#mvp_table").length > 0) {
$("#scoreboard_right_image").fadeOut("slow", function() {
$("#scoreboard_mvp").fadeIn("slow");
});
}
} else {
$(".lastflagcol").fadeOut("slow", function() {
$(".hintcol").fadeIn("slow");
});
$("#scoreboard_mvp").fadeOut("slow", function() {
$("#scoreboard_right_image").fadeIn("slow");
});
if ($("#mvp_table").length > 0) {
$("#scoreboard_mvp").fadeOut("slow", function() {
$("#scoreboard_right_image").fadeIn("slow");
});
}
}
scoretext = !scoretext;
}
Expand Down

0 comments on commit 943d2f7

Please sign in to comment.