summaryrefslogtreecommitdiffstats
path: root/pages/home.php
diff options
context:
space:
mode:
authorPatrick Davison <snapwilliam@gmail.com>2012-04-25 23:21:03 -0700
committerPatrick Davison <snapwilliam@gmail.com>2012-04-25 23:21:03 -0700
commitf7d2bffb4f3600757e28494d0556d5162d9fe024 (patch)
treea230a3d11184c90d925df0f66e51815efb38e86b /pages/home.php
parent190c42665c804759847290e2f60b424df299f915 (diff)
parentdf71da70062b9f70d9906fa7df7350d47be79acc (diff)
downloadpathery-f7d2bffb4f3600757e28494d0556d5162d9fe024.tar.xz
Merge branch 'HEAD' of ssh://git@git.raylu.net/pathery
Diffstat (limited to 'pages/home.php')
-rw-r--r--pages/home.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/pages/home.php b/pages/home.php
index 71bcd33..45911c5 100644
--- a/pages/home.php
+++ b/pages/home.php
@@ -152,7 +152,7 @@ function displayMaze($motd, $mapType) {
//data for the topscores
$topscores = topScores($motd['id'], 30);
- $topscorediv = "<center><a href='javascript:updateScoresReq($mapID);'>Update</a></center> <div id='$mapID,dspScore'>\n$topscores\n</div>";
+ $topscorediv = "<div id='$mapID,dspScore'>\n$topscores\n</div>";
$userID = $_SESSION['userID'];
if ($_SESSION['accepted'] == 1) {
@@ -266,10 +266,10 @@ function showStats(type) {
elem.className += 'selected';
var x = 0;
- for(var mapid in jsonmapdata) {
+ for(var mapid in jsonmapdata) {
x++;
if (x == type)
- updateScoresReq(mapid);
+ updateScoresReq(mapid, type);
}
}
showStats(1);
@@ -281,4 +281,4 @@ showStats(1);
<?php
htmlFooter();
-?> \ No newline at end of file
+?>