From 8f10cd9e8eb10f1b0bb0a577933b6727a1470149 Mon Sep 17 00:00:00 2001 From: Kai Lauterbach Date: Wed, 3 May 2023 14:17:06 +0200 Subject: [PATCH] Typo fixed --- firmware/data/index_template_bottom.html | 2 +- firmware/html/index_template_bottom.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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'); }); });