summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorPatrick Davison <snapwilliam@gmail.com>2012-09-30 21:48:56 -0700
committerPatrick Davison <snapwilliam@gmail.com>2012-09-30 21:48:56 -0700
commitbc456f1ef6a74a74e821304df1a08a5aeb341f7a (patch)
treea36e8a4ff2dadbfda7a94d0ca849bab8b6786086 /js
parentbe06cd9fdc0253b5fdf2fb17de4aac6f10bff80c (diff)
parent60c8232de409d0cb6de37ef87a489049f060003d (diff)
downloadpathery-bc456f1ef6a74a74e821304df1a08a5aeb341f7a.tar.xz
Merge branch 'HEAD' of ssh://git@git.raylu.net/pathery
Diffstat (limited to 'js')
-rw-r--r--js/mapspecs.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/js/mapspecs.js b/js/mapspecs.js
index 8bd3f6f..0946dee 100644
--- a/js/mapspecs.js
+++ b/js/mapspecs.js
@@ -20,7 +20,6 @@ else if (document.attachEvent) { // IE 8-
}
var isChallenge = false;
-var challengeID = false;
var solution = new Array();
var blocks = new Array();
@@ -188,11 +187,13 @@ function doSend(mapid) {
pressedGoTime = new Date().getTime();
- reqstr = "&mapcode="+mapdata[mapid].code;
+ reqstr = "isChallenge="+isChallenge
+ reqstr += "&r=getpath"
+ reqstr += "&mapcode="+mapdata[mapid].code;
reqstr += "&mapid="+mapid;
reqstr += "&solution="+solution[mapid];
- ajax.requestFile = "do.php?challengeID="+challengeID+"&isChallenge="+isChallenge+"&r=getpath"+reqstr; //prepare strdata
+ ajax.requestFile = "do.php?"+reqstr; //prepare strdata
ajax.onCompletion = request_path_done; // specify function to be executed on response
ajax.runAJAX();
}