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:
parent
360998e9a0
commit
782bf04714
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue