From a45d40f158157cc0eb431812eec7d954574d36aa Mon Sep 17 00:00:00 2001 From: Simone <26844016+simonebortolin@users.noreply.github.com> Date: Wed, 18 Jan 2023 19:45:23 +0100 Subject: hotfix toggle (#130) Co-authored-by: Simone Bortolin --- _includes/ymodem_lantiq.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '_includes') diff --git a/_includes/ymodem_lantiq.html b/_includes/ymodem_lantiq.html index 2dc5c84..dffbc32 100644 --- a/_includes/ymodem_lantiq.html +++ b/_includes/ymodem_lantiq.html @@ -96,10 +96,10 @@ flashForm.addEventListener('submit', async function(event) { if (!flashForm.checkValidity()) { event.preventDefault(); - [...flashForm.elements].map(function(e){return e.parentNode}).forEach(function(e){e.classList.toogle('was-validated', true)}); + [...flashForm.elements].map(function(e){return e.parentNode}).forEach(function(e){e.classList.toggle('was-validated', true)}); } else { event.preventDefault(); - [...flashForm.elements].map(function(e){return e.parentNode}).forEach(function(e){e.classList.toogle('was-validated', false)}); + [...flashForm.elements].map(function(e){return e.parentNode}).forEach(function(e){e.classList.toggle('was-validated', false)}); var fomrdata = new FormData(flashForm); var file = fomrdata.get('flash-mtd'); var image = fomrdata.get('image'); -- cgit v1.2.3