Get state after finishing sequence, to update UI
This commit is contained in:
parent
9e13e0fb96
commit
fdc43fdc37
|
@ -172,7 +172,6 @@ var setState = function (res) {
|
||||||
setDelayScale();
|
setDelayScale();
|
||||||
|
|
||||||
if (res.sequence == true) {
|
if (res.sequence == true) {
|
||||||
console.log(res.sequence);
|
|
||||||
STATE.sequence = true;
|
STATE.sequence = true;
|
||||||
mobile.ble.active = true;
|
mobile.ble.active = true;
|
||||||
document.getElementById('seq').classList.add('focus');
|
document.getElementById('seq').classList.add('focus');
|
||||||
|
|
|
@ -159,6 +159,8 @@ web.sequenceSuccess = function (res) {
|
||||||
STATE.sequence = false;
|
STATE.sequence = false;
|
||||||
document.getElementById('seq').blur();
|
document.getElementById('seq').blur();
|
||||||
document.getElementById('seq').classList.remove('focus');
|
document.getElementById('seq').classList.remove('focus');
|
||||||
|
//update frontend at end of sequence
|
||||||
|
mobile.getState();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
web.useJson = function (res) {
|
web.useJson = function (res) {
|
||||||
|
|
Loading…
Reference in New Issue