# HG changeset patch # User Nicholas Jillings # Date 1432646252 -3600 # Node ID e7f5890351eb7123b7e21d407962b592c4dd1c9f # Parent 17353d015d334cfc7c5f2ca716c8cd8488e562c3 Fixed projectReturn=null to show XML save in popup window. diff -r 17353d015d33 -r e7f5890351eb core.js --- a/core.js Tue May 26 14:07:51 2015 +0100 +++ b/core.js Tue May 26 14:17:32 2015 +0100 @@ -178,7 +178,8 @@ loadTest(0); } else if (currentState == 'postTest') { postTestQuestions = popup.responses; - console.log('ALL COLLECTED!'); + console.log('ALL COLLECTED!'); + createProjectSave(projectReturn); }else if (currentState.substr(0,10) == 'testRunPre') { // Start the test @@ -205,12 +206,6 @@ currentState = 'testRunPost-'+testId; popup.initState(postXML); } - else { - - - // No post tests, check if we have another test to perform instead - - } } console.log(currentState); } @@ -289,6 +284,9 @@ var submitDiv = document.getElementById('download-point'); submitDiv.appendChild(a); + popup.showPopup(); + popup.popupContent.innerHTML = null; + popup.popupContent.appendChild(submitDiv) } return submitDiv; } diff -r 17353d015d33 -r e7f5890351eb example_eval/project.xml --- a/example_eval/project.xml Tue May 26 14:07:51 2015 +0100 +++ b/example_eval/project.xml Tue May 26 14:17:32 2015 +0100 @@ -2,11 +2,12 @@ + Please enter your location. Please listen to all mixes + Please enter your name. Thank you for taking this listening test. - Please enter your name. testTimer @@ -41,6 +42,7 @@ Start the Test 3 + Please enter the genre \ No newline at end of file