changeset 3129:a21b88d212b6

Fix for #287
author Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk>
date Thu, 21 Feb 2019 11:44:17 +0000
parents 5419fc9cbb15
children ebe6a4c98635
files js/core.js
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/js/core.js	Wed Nov 28 13:52:04 2018 +0000
+++ b/js/core.js	Thu Feb 21 11:44:17 2019 +0000
@@ -1202,6 +1202,7 @@
                 this.store.postResult(node);
             }, this);
             this.store.complete();
+            testState.stateIndex++;
             advanceState();
         }
     };
@@ -1369,7 +1370,6 @@
             storage.update();
         }
         if (this.stateIndex == -2) {
-            this.stateIndex++;
             if (this.preTestSurvey !== undefined) {
                 popup.initState(this.preTestSurvey, storage.globalPreTest);
             } else {
@@ -3838,7 +3838,7 @@
         if (window.returnURL !== undefined) {
             returnURL = String(window.returnURL);
         }
-        
+
         var chainCount = 0;
         var chainPosition = chainCount;