1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

complete tidy up of trigger node

remove unnecessary console.log
This commit is contained in:
Dave Conway-Jones 2020-01-31 17:56:06 +00:00
parent 87aacb4270
commit 88e729664a
No known key found for this signature in database
GPG Key ID: 302A6725C594817F

View File

@ -92,8 +92,8 @@
units: {value:"ms"},
reset: {value:""},
bytopic: {value:"all"},
outputs: {value:1},
topic: {value:"topic",required:true}
topic: {value:"topic",required:true},
outputs: {value:1}
},
inputs:1,
outputs:1,
@ -114,12 +114,9 @@
},
oneditprepare: function() {
var that = this;
if (this.property === undefined) {
$("#node-input-property").val("topic");
}
$("#node-input-property").typedInput({default:'msg',types:['msg']});
if (this.topic === undefined) { $("#node-input-topic").val("topic"); }
$("#node-input-topic").typedInput({default:'msg',types:['msg']});
$("#node-input-bytopic").on("change", function() {
console.log("BYT",$("#node-input-bytopic").val());
if ($("#node-input-bytopic").val() === "all") {
$("#node-stream-topic").hide();
} else {