From 3b784cd8a8a0eb6028fd61a6ee60c39923c30bd9 Mon Sep 17 00:00:00 2001 From: Patrick Davison Date: Thu, 21 Feb 2013 22:48:02 -0800 Subject: Preperation for cacheing scores. --- js/scores.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'js') diff --git a/js/scores.js b/js/scores.js index 161f1ae..b062c28 100644 --- a/js/scores.js +++ b/js/scores.js @@ -20,7 +20,8 @@ function scoresRequestPage(mapid, page) { //console.log("Requesting Page", mapid, page, ajax.inUse); // == Additionally, check for achievements. - ajax.requestFile = "do.php?r=reqScorePage&mapid="+mapid+"&reqPage="+page; + //ajax.requestFile = "do.php?r=reqScorePage&mapid="+mapid+"&reqPage="+page; + ajax.requestFile = "a/score/"+mapid+"_"+page+".js"; ajax.onCompletion = scoresRequestPageDone; // Specify function to be executed on response. //ajax.onLoading = ''; //ajax.onLoaded = ''; @@ -146,7 +147,10 @@ function scoresFormatPage(JO) { var rowclass = 'scoreRow'+((i % 2)+1); - if (u.isUser) { + // if (u.isUser) { + // rowclass = 'scoreRowSelf'; + // } + if (u.ID == userObj.ID) { rowclass = 'scoreRowSelf'; } -- cgit v1.2.3