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"},
|
units: {value:"ms"},
|
||||||
reset: {value:""},
|
reset: {value:""},
|
||||||
bytopic: {value:"all"},
|
bytopic: {value:"all"},
|
||||||
outputs: {value:1},
|
topic: {value:"topic",required:true},
|
||||||
topic: {value:"topic",required:true}
|
outputs: {value:1}
|
||||||
},
|
},
|
||||||
inputs:1,
|
inputs:1,
|
||||||
outputs:1,
|
outputs:1,
|
||||||
@ -114,12 +114,9 @@
|
|||||||
},
|
},
|
||||||
oneditprepare: function() {
|
oneditprepare: function() {
|
||||||
var that = this;
|
var that = this;
|
||||||
if (this.property === undefined) {
|
if (this.topic === undefined) { $("#node-input-topic").val("topic"); }
|
||||||
$("#node-input-property").val("topic");
|
$("#node-input-topic").typedInput({default:'msg',types:['msg']});
|
||||||
}
|
|
||||||
$("#node-input-property").typedInput({default:'msg',types:['msg']});
|
|
||||||
$("#node-input-bytopic").on("change", function() {
|
$("#node-input-bytopic").on("change", function() {
|
||||||
console.log("BYT",$("#node-input-bytopic").val());
|
|
||||||
if ($("#node-input-bytopic").val() === "all") {
|
if ($("#node-input-bytopic").val() === "all") {
|
||||||
$("#node-stream-topic").hide();
|
$("#node-stream-topic").hide();
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user