Fix direction label in mobile app (light up selected)

This commit is contained in:
mmcwilliams 2017-12-29 22:05:00 -05:00
parent e6ce3cd977
commit f9f98ebc02
2 changed files with 6 additions and 0 deletions

View File

@ -154,6 +154,9 @@ var setState = function (res) {
document.getElementById('dir').checked = true; document.getElementById('dir').checked = true;
STATE.dir = res.frame.dir; STATE.dir = res.frame.dir;
setDirLabel(false); setDirLabel(false);
} else {
STATE.dir = res.frame.dir;
setDirLabel(true);
} }
document.getElementById('counter').value = res.counter; document.getElementById('counter').value = res.counter;
STATE.counter = res.counter; STATE.counter = res.counter;

View File

@ -181,6 +181,9 @@ mobile.setDir = function () {
mobile.dirSuccess = function () { mobile.dirSuccess = function () {
console.log('Set direction'); console.log('Set direction');
mobile.getState(); mobile.getState();
setTimeout(() => {
setDirLabel(STATE.dir);
}, 50);
}; };
mobile.setExposure = function () { mobile.setExposure = function () {
let exposure = document.getElementById('exposure').value; let exposure = document.getElementById('exposure').value;