Mercurial > hg > webaudioevaluationtool
diff core.js @ 954:e7f5890351eb
Fixed projectReturn=null to show XML save in popup window.
author | Nicholas Jillings <nicholas.jillings@eecs.qmul.ac.uk> |
---|---|
date | Tue, 26 May 2015 14:17:32 +0100 |
parents | 17353d015d33 |
children | 39e56b863075 |
line wrap: on
line diff
--- 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; }