From fdc43fdc3758a0a129d105bb3510108b50ba43d4 Mon Sep 17 00:00:00 2001 From: mmcw-dev Date: Thu, 21 Dec 2017 00:15:55 -0500 Subject: [PATCH] Get state after finishing sequence, to update UI --- app/www/static/js/intval.core.js | 1 - app/www/static/js/intval.web.js | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/www/static/js/intval.core.js b/app/www/static/js/intval.core.js index ab7fbf7..b710177 100644 --- a/app/www/static/js/intval.core.js +++ b/app/www/static/js/intval.core.js @@ -172,7 +172,6 @@ var setState = function (res) { setDelayScale(); if (res.sequence == true) { - console.log(res.sequence); STATE.sequence = true; mobile.ble.active = true; document.getElementById('seq').classList.add('focus'); diff --git a/app/www/static/js/intval.web.js b/app/www/static/js/intval.web.js index b4e677a..21653b3 100644 --- a/app/www/static/js/intval.web.js +++ b/app/www/static/js/intval.web.js @@ -159,6 +159,8 @@ web.sequenceSuccess = function (res) { STATE.sequence = false; document.getElementById('seq').blur(); document.getElementById('seq').classList.remove('focus'); + //update frontend at end of sequence + mobile.getState(); } } web.useJson = function (res) {