summaryrefslogtreecommitdiffstats
path: root/js/mapspecs.js
diff options
context:
space:
mode:
authorPatrick Davison <snapwilliam@gmail.com>2013-03-07 21:42:14 -0800
committerPatrick Davison <snapwilliam@gmail.com>2013-03-07 21:42:14 -0800
commitaf0ee456d75304494e3eecfb8a9bd2b232e44fe6 (patch)
treeb11254a8f2c5bdd90806b7547c5bf0ed334790dc /js/mapspecs.js
parentc230abd1f7ecc1139f9bef92208eced6849b2c78 (diff)
downloadpathery-af0ee456d75304494e3eecfb8a9bd2b232e44fe6.tar.xz
Scoreboard bugfixes and improvments, partial implementation of onhashchange.
Diffstat (limited to 'js/mapspecs.js')
-rw-r--r--js/mapspecs.js6
1 files changed, 5 insertions, 1 deletions
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);";