Fixed updateLightStateAndPWMValues call

This commit is contained in:
Kai Lauterbach 2023-05-17 19:44:55 +02:00
parent 91d2d867b0
commit c79e15d7a1
2 changed files with 4 additions and 4 deletions

View file

@ -350,7 +350,7 @@ console.log('Error while sending data to server.');
}
};
xhr.send();
updateLightState();
updateLightStateAndPWMValues();
this.classList.add('pure-button-primary');
document.getElementById('on'+id+'_on').classList.remove('pure-button-primary');
});
@ -395,7 +395,7 @@ console.log('Error while sending data to server.');
}
};
xhr.send();
updateLightState();
updateLightStateAndPWMValues();
this.classList.add('pure-button-primary');
document.getElementById('on'+id+'_off').classList.remove('pure-button-primary');
});

View file

@ -409,7 +409,7 @@ links.forEach(function(link) {
// Sende die Anfrage im Hintergrund
xhr.send();
updateLightState();
updateLightStateAndPWMValues();
this.classList.add('pure-button-primary');
document.getElementById('on'+id+'_on').classList.remove('pure-button-primary');
});
@ -462,7 +462,7 @@ links.forEach(function(link) {
// Sende die Anfrage im Hintergrund
xhr.send();
updateLightState();
updateLightStateAndPWMValues();
this.classList.add('pure-button-primary');
document.getElementById('on'+id+'_off').classList.remove('pure-button-primary');
});