diff --git a/app/www/static/js/intval.core.js b/app/www/static/js/intval.core.js index 87b5c4a..6663b14 100644 --- a/app/www/static/js/intval.core.js +++ b/app/www/static/js/intval.core.js @@ -154,6 +154,9 @@ var setState = function (res) { document.getElementById('dir').checked = true; STATE.dir = res.frame.dir; setDirLabel(false); + } else { + STATE.dir = res.frame.dir; + setDirLabel(true); } document.getElementById('counter').value = res.counter; STATE.counter = res.counter; diff --git a/app/www/static/js/intval.mobile.js b/app/www/static/js/intval.mobile.js index b6c1883..e3dc43f 100644 --- a/app/www/static/js/intval.mobile.js +++ b/app/www/static/js/intval.mobile.js @@ -181,6 +181,9 @@ mobile.setDir = function () { mobile.dirSuccess = function () { console.log('Set direction'); mobile.getState(); + setTimeout(() => { + setDirLabel(STATE.dir); + }, 50); }; mobile.setExposure = function () { let exposure = document.getElementById('exposure').value;