From 782bf04714d289299e037450968618cbc0760fda Mon Sep 17 00:00:00 2001 From: mmcw-dev Date: Wed, 20 Dec 2017 23:59:36 -0500 Subject: [PATCH] Start and stop worked in web lib, but GUI didn't. This is a fix that shuts off the "sequence" button when sequence is stopped. --- app/www/static/js/intval.web.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/www/static/js/intval.web.js b/app/www/static/js/intval.web.js index bb90cd0..b4e677a 100644 --- a/app/www/static/js/intval.web.js +++ b/app/www/static/js/intval.web.js @@ -150,9 +150,15 @@ web.sequence = function () { } web.sequenceSuccess = function (res) { if (res.started && res.started != false) { + STATE.sequence = true; document.getElementById('seq').focus(); + if (!document.getElementById('seq').classList.contains('focus')) { + document.getElementById('seq').classList.add('focus'); + } } else if (res.stopped) { + STATE.sequence = false; document.getElementById('seq').blur(); + document.getElementById('seq').classList.remove('focus'); } } web.useJson = function (res) {