From 9fa6335c48e435127eb367f2e93a4040cfb94a3c Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Thu, 7 May 2020 13:23:59 -0400 Subject: [PATCH] STATE.sequence is not being reset to false when over. UI issue #20 is appearing in web app as well as iOS app, so this problem is likely occuring in intval3.core.js or replicated in all apps. --- app/www/static/js/intval.core.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/www/static/js/intval.core.js b/app/www/static/js/intval.core.js index b42fc33..0b7183b 100644 --- a/app/www/static/js/intval.core.js +++ b/app/www/static/js/intval.core.js @@ -184,7 +184,6 @@ var setState = function (res) { setDelayScale(); if (res.sequence == true) { - STATE.sequence = true; if (mobile.ble) mobile.ble.active = true; seqState(true); } else { @@ -197,13 +196,15 @@ var seqState = function (state) { if (state) { if (!elem.classList.contains('focus')) { elem.classList.add('focus'); - elem.innerHTML = 'STOP SEQUENCE'; } + elem.innerHTML = 'STOP SEQUENCE'; + STATE.sequence = true; } else { if (elem.classList.contains('focus')) { elem.classList.remove('focus'); - elem.innerHTML = 'START SEQUENCE'; } + elem.innerHTML = 'START SEQUENCE'; + STATE.sequence = false; } };