summaryrefslogtreecommitdiffstats
path: root/pages
diff options
context:
space:
mode:
Diffstat (limited to 'pages')
-rw-r--r--pages/scores.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/pages/scores.php b/pages/scores.php
index 37ef45c..ee7c88b 100644
--- a/pages/scores.php
+++ b/pages/scores.php
@@ -90,6 +90,13 @@ function displayMapScores(mapID) {
$('#scoreDisplay').empty();
newDiv.prependTo('#scoreDisplay');
}
+
+ //Hack: display the "current map" div for currently running maps
+ //Relies on the fact that the #thumb_<mapId> div has a single child with the 'current' class..
+ var showCurrentMapMessage = $('#thumb_'+mapID).children().hasClass('current');
+ $('#currentMapMessage').toggle(showCurrentMapMessage);
+
+
$("#mapDisplay").fadeOut('fast');
displayMap(mapID, "mapDisplay", 682);
scoresShowPage(pointerPage, mapID);
@@ -282,7 +289,7 @@ topbar($Links);
<div id='mapNavigation'></div>
</div>
</div>
-
+ <div id="currentMapMessage"><span>This map is currently running, so points/solutions are not available</span></div>
<div style='clear:both'></div>
<div>
<div class='scoreCol' id='scoreDisplay'></div>