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/scores.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'js/scores.js') diff --git a/js/scores.js b/js/scores.js index dc164f2..1e324a4 100644 --- a/js/scores.js +++ b/js/scores.js @@ -152,16 +152,17 @@ function scoresFormatPage(JO) { if (u.ID == userObj.ID) { rowclass = 'scoreRowSelf'; } - if (typeof(pointerUserID) != 'undefined' && u.ID == pointerUserID) { - setTimeout("useSolution(\""+JO.mapid+"\", \""+u.solution+"\", \""+u.moves+"\", \""+u.wallColor+"\", \""+u.wallEmblem+"\");", 400); - pointerUserID = ''; + if (typeof pointerSolutionID != 'undefined' && u.solutionID == pointerSolutionID && goToScorePointer) { + goToScorePointer = false; + setTimeout("useSolution(\""+JO.mapid+"\", \""+u.solution+"\", \""+u.moves+"\", \""+u.wallColor+"\", \""+u.wallEmblem+"\", \""+u.solutionID+"\");", 400); + rowclass += ' solutionSelected'; } if (u.solution) { rowclass += ' scoreRowSolutionAvailable'; - p += ""; } else { -- cgit v1.2.3