From ba8649117d38d5b6e70ecb8adfbbbe3e3621c659 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Fri, 5 Jun 2020 11:22:38 +0100 Subject: [PATCH] ensure trigger node detects changes to number of outputs --- .../@node-red/nodes/core/function/89-trigger.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/node_modules/@node-red/nodes/core/function/89-trigger.html b/packages/node_modules/@node-red/nodes/core/function/89-trigger.html index 6935e14cc..edbb84e5a 100644 --- a/packages/node_modules/@node-red/nodes/core/function/89-trigger.html +++ b/packages/node_modules/@node-red/nodes/core/function/89-trigger.html @@ -73,6 +73,7 @@
+
@@ -128,10 +129,10 @@ $("#node-input-second").change(function() { if ($("#node-input-second").is(":checked")) { - that.outputs = 2; + $("#node-input-outputs").val(2); } else { - that.outputs = 1; + $("#node-input-outputs").val(1); } }); $("#node-then-type").on("change", function() { @@ -140,7 +141,7 @@ $(".node-type-duration").hide(); $("#node-second-output").hide(); $("#node-input-second").prop('checked', false); - that.outputs = 1; + $("#node-input-outputs").val(1); } else if ($(this).val() == "loop") { if ($("#node-input-duration").val() == 0) { $("#node-input-duration").val(250); } @@ -148,7 +149,7 @@ $(".node-type-duration").show(); $("#node-second-output").hide(); $("#node-input-second").prop('checked', false); - that.outputs = 1; + $("#node-input-outputs").val(1); } else { if ($("#node-input-duration").val() == 0) { $("#node-input-duration").val(250); } $(".node-type-wait").show();