From ab9bc7e3909d35424d334ca2b63ac5fad2138dc6 Mon Sep 17 00:00:00 2001 From: n1474335 Date: Sun, 17 Jun 2018 13:49:32 +0100 Subject: [PATCH] Fixed boolean arg checkboxes --- src/web/HTMLIngredient.mjs | 20 +++++++++++--------- src/web/html/index.html | 12 ++++++------ src/web/stylesheets/layout/_operations.css | 7 +++++-- 3 files changed, 22 insertions(+), 17 deletions(-) diff --git a/src/web/HTMLIngredient.mjs b/src/web/HTMLIngredient.mjs index 88fd9781..d1d050cb 100755 --- a/src/web/HTMLIngredient.mjs +++ b/src/web/HTMLIngredient.mjs @@ -105,15 +105,15 @@ class HTMLIngredient { case "boolean": html += `
- +
`; break; @@ -243,6 +243,8 @@ class HTMLIngredient { input = link.parentNode.parentNode.parentNode.querySelector("input"); input.value = link.getAttribute("value"); + const evt = new Event("change"); + input.dispatchEvent(evt); this.manager.recipe.ingChange(); } diff --git a/src/web/html/index.html b/src/web/html/index.html index d717fc99..33ddb9b7 100755 --- a/src/web/html/index.html +++ b/src/web/html/index.html @@ -446,42 +446,42 @@ -
+
-
+
-
+
-
+
-
+
-
+