some cleanup

This commit is contained in:
Christian Herzog
2020-03-04 19:04:57 +01:00
parent b336198853
commit 95267d4b3e
2 changed files with 4 additions and 1 deletions

View File

@@ -800,21 +800,23 @@ function checkStatus(){
$("#otadiv").show();
$('a[href^="#tab-audio"]').hide();
$('a[href^="#tab-gpio"]').show();
$('#uploaddiv').show();
$("footer.footer").removeClass('sl');
$("footer.footer").addClass('recovery');
$("#boot-button").html('Reboot');
$("#boot-form").attr('action', '/reboot_ota.json');
enableStatusTimer = true;
} else {
recovery = false;
$("#otadiv").hide();
$('a[href^="#tab-audio"]').show();
$('a[href^="#tab-gpio"]').hide();
$('#uploaddiv').hide();
$("footer.footer").removeClass('recovery');
$("footer.footer").addClass('sl');
$("#boot-button").html('Recovery');
$("#boot-form").attr('action', '/recovery.json');
$('#uploaddiv"]').hide();
enableStatusTimer = false;
}

View File

@@ -17,6 +17,7 @@
<script src="/res/test/bootstrap.min.js"></script> <!-- TODO delete -->
<script src="/res/code.js"></script>
<script src="code.js"></script> <!-- TODO delete -->