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.

This commit is contained in:
mmcw-dev 2017-12-20 23:59:36 -05:00
parent 360998e9a0
commit 782bf04714
1 changed files with 6 additions and 0 deletions

View File

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