# HG changeset patch # User Nicholas Jillings # Date 1457610548 0 # Node ID c753706731f25e25e68138a337ba7676ac961beb # Parent a6cfd378891c40ee7077ea6af279cb519e9ce915 Fixed null/period saves on test completion. specification projectReturn is currently deprecated pending new usage. diff -r a6cfd378891c -r c753706731f2 core.js --- a/core.js Thu Mar 10 10:04:38 2016 +0000 +++ b/core.js Thu Mar 10 11:49:08 2016 +0000 @@ -334,16 +334,17 @@ popup.popupContent.appendChild(a); } else { var xmlhttp = new XMLHttpRequest; - xmlhttp.open("POST",destURL,true); + xmlhttp.open("POST","\save.php?key="+storage.SessionKey.key,true); xmlhttp.setRequestHeader('Content-Type', 'text/xml'); xmlhttp.onerror = function(){ console.log('Error saving file to server! Presenting download locally'); - createProjectSave(null); + createProjectSave("local"); }; xmlhttp.onload = function() { console.log(xmlhttp); if (this.status >= 300) { console.log("WARNING - Could not update at this time"); + createProjectSave("local"); } else { var parser = new DOMParser(); var xmlDoc = parser.parseFromString(xmlhttp.responseText, "application/xml"); diff -r a6cfd378891c -r c753706731f2 example_eval/project.xml --- a/example_eval/project.xml Thu Mar 10 10:04:38 2016 +0000 +++ b/example_eval/project.xml Thu Mar 10 11:49:08 2016 +0000 @@ -13,7 +13,7 @@ - + This is an example of an 'APE'-style test, with two pages, using the test stimuli in 'example_eval/'. @@ -31,7 +31,7 @@ - + Thank you for taking this listening test. Please click 'submit' and your results will appear in the 'saves/' folder. @@ -76,7 +76,7 @@ - + Example of an 'APE' style interface with hidden anchor 'zero' (which needs to be below 20%), looping of the samples, randomisation of marker labels, mandatory moving of every sample, and a forced scale usage of at least 25%-75%. @@ -123,7 +123,7 @@ - + Example of an 'APE' style interface with hidden anchor 'zero' (which needs to be below 20%), looping of the samples, randomisation of marker labels, mandatory moving of every sample, and a forced scale usage of at least 25%-75%.