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) {