comparison js/core.js @ 3129:a21b88d212b6

Fix for #287
author Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk>
date Thu, 21 Feb 2019 11:44:17 +0000
parents aa4503f8c630
children ebe6a4c98635
comparison
equal deleted inserted replaced
3128:5419fc9cbb15 3129:a21b88d212b6
1200 this.hidePopup(); 1200 this.hidePopup();
1201 this.popupOptions.forEach(function (node) { 1201 this.popupOptions.forEach(function (node) {
1202 this.store.postResult(node); 1202 this.store.postResult(node);
1203 }, this); 1203 }, this);
1204 this.store.complete(); 1204 this.store.complete();
1205 testState.stateIndex++;
1205 advanceState(); 1206 advanceState();
1206 } 1207 }
1207 }; 1208 };
1208 1209
1209 this.previousClick = function () { 1210 this.previousClick = function () {
1367 } 1368 }
1368 if (this.stateIndex > -2) { 1369 if (this.stateIndex > -2) {
1369 storage.update(); 1370 storage.update();
1370 } 1371 }
1371 if (this.stateIndex == -2) { 1372 if (this.stateIndex == -2) {
1372 this.stateIndex++;
1373 if (this.preTestSurvey !== undefined) { 1373 if (this.preTestSurvey !== undefined) {
1374 popup.initState(this.preTestSurvey, storage.globalPreTest); 1374 popup.initState(this.preTestSurvey, storage.globalPreTest);
1375 } else { 1375 } else {
1376 this.advanceState(); 1376 this.advanceState();
1377 } 1377 }
3836 this.SessionKey = (function (parent) { 3836 this.SessionKey = (function (parent) {
3837 var returnURL = ""; 3837 var returnURL = "";
3838 if (window.returnURL !== undefined) { 3838 if (window.returnURL !== undefined) {
3839 returnURL = String(window.returnURL); 3839 returnURL = String(window.returnURL);
3840 } 3840 }
3841 3841
3842 var chainCount = 0; 3842 var chainCount = 0;
3843 var chainPosition = chainCount; 3843 var chainPosition = chainCount;
3844 3844
3845 function postUpdate() { 3845 function postUpdate() {
3846 return new Promise(function (resolve, reject) { 3846 return new Promise(function (resolve, reject) {