summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorPatrick Davison <snapwilliam@gmail.com>2013-02-21 22:48:02 -0800
committerPatrick Davison <snapwilliam@gmail.com>2013-02-21 22:48:02 -0800
commit3b784cd8a8a0eb6028fd61a6ee60c39923c30bd9 (patch)
tree352903c4b32dcbbb7236f86c789ff3ef7336030d /js
parent5138b32717c9a54de0882e0319a70eda2bb2c63a (diff)
downloadpathery-3b784cd8a8a0eb6028fd61a6ee60c39923c30bd9.tar.xz
Preperation for cacheing scores.
Diffstat (limited to 'js')
-rw-r--r--js/scores.js8
1 files changed, 6 insertions, 2 deletions
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';
}