Fixed updateLightStateAndPWMValues call
This commit is contained in:
parent
91d2d867b0
commit
c79e15d7a1
2 changed files with 4 additions and 4 deletions
|
@ -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');
|
||||
});
|
||||
|
|
|
@ -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');
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue