merge Equalizer - release

This commit is contained in:
Sebastien
2020-04-17 14:18:39 -04:00
parent 0caaadc774
commit 29737f720e
6 changed files with 33 additions and 13 deletions

View File

@@ -539,6 +539,7 @@ $(document).ready(function(){
//first time the page loads: attempt to get the connection status and start the wifi scan
refreshAP(false);
getConfig();
getCommands();
//start timers
startCheckStatusInterval();
@@ -894,6 +895,19 @@ function checkStatus(){
});
}
function getCommands() {
$.getJSON("/commands.json", function(data) {
console.log(data);
})
.fail(function(xhr, ajaxOptions, thrownError) {
console.log(xhr.status);
console.log(thrownError);
if (thrownError != '') showMessage(thrownError, 'MESSAGING_ERROR');
blockAjax = false;
});
}
function getConfig() {
$.getJSON("/config.json", function(data) {
Object.keys(data).sort().forEach(function(key, i) {