diff --git a/firmware/data/index_template_bottom.html b/firmware/data/index_template_bottom.html index baeab8c..32db70c 100644 --- a/firmware/data/index_template_bottom.html +++ b/firmware/data/index_template_bottom.html @@ -242,7 +242,7 @@ xhr.open('GET', 'http://{{IP_ADDRESS}}/?on' + id + '=true&transition=' + documen xhr.send(); updateLightState(); -this.classList.remove('pure-button-primary'); +this.classList.add('pure-button-primary'); document.getElementById('on'+id+'_off').classList.remove('pure-button-primary'); }); }); diff --git a/firmware/html/index_template_bottom.html b/firmware/html/index_template_bottom.html index 8fb77bc..e2c534a 100644 --- a/firmware/html/index_template_bottom.html +++ b/firmware/html/index_template_bottom.html @@ -242,7 +242,7 @@ // Sende die Anfrage im Hintergrund xhr.send(); updateLightState(); - this.classList.remove('pure-button-primary'); + this.classList.add('pure-button-primary'); document.getElementById('on'+id+'_off').classList.remove('pure-button-primary'); }); });