mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-08 20:47:08 +03:00
disable status outside of recovery
This commit is contained in:
@@ -498,9 +498,9 @@ $(document).ready(function(){
|
|||||||
}
|
}
|
||||||
blockAjax = false;
|
blockAjax = false;
|
||||||
})
|
})
|
||||||
.fail(function() {
|
.fail(function() {
|
||||||
//don't do anything, the server might be down while esp32 recalibrates radio
|
//don't do anything, the server might be down while esp32 recalibrates radio
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function getConfig() {
|
function getConfig() {
|
||||||
@@ -514,7 +514,7 @@ $(document).ready(function(){
|
|||||||
$("#autoexec-cb")[0].checked=false;
|
$("#autoexec-cb")[0].checked=false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (data.hasOwnProperty('recovery')) {
|
if (data.hasOwnProperty('recovery')) { //move to status!
|
||||||
if (data["recovery"] === 1) {
|
if (data["recovery"] === 1) {
|
||||||
recovery = true;
|
recovery = true;
|
||||||
$("#otadiv").show();
|
$("#otadiv").show();
|
||||||
@@ -522,6 +522,7 @@ $(document).ready(function(){
|
|||||||
} else {
|
} else {
|
||||||
recovery = false;
|
recovery = false;
|
||||||
$("#otadiv").hide();
|
$("#otadiv").hide();
|
||||||
|
enableStatusTimer = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (data.hasOwnProperty('list')) {
|
if (data.hasOwnProperty('list')) {
|
||||||
@@ -535,7 +536,7 @@ $(document).ready(function(){
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.fail(function() {
|
.fail(function() {
|
||||||
console.log("failed to fetch config!");
|
console.log("failed to fetch config!");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user