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:
parent
87aacb4270
commit
88e729664a
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user