diff options
-rw-r--r-- | js/mapspecs.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/js/mapspecs.js b/js/mapspecs.js index 30a8ec7..c15e3af 100644 --- a/js/mapspecs.js +++ b/js/mapspecs.js @@ -294,6 +294,17 @@ function request_path_done() { animatePath(JO.path[i].path, mapid, JO.path[i].start, i);
}
mapdata[JO.mapid].pathsPending = i;
+
+ //Mark off challenges
+ if(isChallenge)
+ {
+ for(var i = 0; i < JO.completedChallenges.length; i++)
+ {
+ var challengeId = JO.completedChallenges[i];
+ document.getElementById("challenge_id_" + challengeId).className = "challenge_complete";
+ }
+ }
+
}
function decryptJSON(text) {
|