diff options
author | Patrick Davison <snapwilliam@gmail.com> | 2013-03-07 21:42:14 -0800 |
---|---|---|
committer | Patrick Davison <snapwilliam@gmail.com> | 2013-03-07 21:42:14 -0800 |
commit | af0ee456d75304494e3eecfb8a9bd2b232e44fe6 (patch) | |
tree | b11254a8f2c5bdd90806b7547c5bf0ed334790dc /js/mapspecs.js | |
parent | c230abd1f7ecc1139f9bef92208eced6849b2c78 (diff) | |
download | pathery-af0ee456d75304494e3eecfb8a9bd2b232e44fe6.tar.xz |
Scoreboard bugfixes and improvments, partial implementation of onhashchange.
Diffstat (limited to 'js/mapspecs.js')
-rw-r--r-- | js/mapspecs.js | 6 |
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);";
|