From af0ee456d75304494e3eecfb8a9bd2b232e44fe6 Mon Sep 17 00:00:00 2001 From: Patrick Davison Date: Thu, 7 Mar 2013 21:42:14 -0800 Subject: Scoreboard bugfixes and improvments, partial implementation of onhashchange. --- js/mapspecs.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'js/mapspecs.js') diff --git a/js/mapspecs.js b/js/mapspecs.js index 6ab7286..7c74a92 100644 --- a/js/mapspecs.js +++ b/js/mapspecs.js @@ -755,7 +755,11 @@ function contains(a, obj) { //Shows a solution temporarly -function useSolution(mapid, inputSolution, moves, tempWallColor, tempWallEmblem) { +function useSolution(mapid, inputSolution, moves, tempWallColor, tempWallEmblem, solutionID) { + + $('.solutionSelected').removeClass('solutionSelected'); + $('#solution_'+solutionID).addClass('solutionSelected'); + solution[mapid] = inputSolution; var animateA = "showTempSolution(\""+mapid+"\", \""+inputSolution+"\", \""+moves+"\", \""+tempWallColor+"\", \""+tempWallEmblem+"\");"; var animateB = "showTempSolution(\""+mapid+"\", \""+inputSolution+"\", \""+moves+"\", false, false);"; -- cgit v1.2.3