# HG changeset patch # User Nicholas Jillings # Date 1457610548 0 # Node ID 0df685136c898742d697a109cb152b1d25e866f2 # Parent 0794fefefbd853681536cf51745e3acda084dd3c Fixed null/period saves on test completion. specification projectReturn is currently deprecated pending new usage. diff -r 0794fefefbd8 -r 0df685136c89 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 0794fefefbd8 -r 0df685136c89 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%.