mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
fix property in/out initialisations
This commit is contained in:
parent
ab483781a2
commit
94a999ba52
@ -128,6 +128,15 @@
|
|||||||
return this.name?"node_label_italic":"";
|
return this.name?"node_label_italic":"";
|
||||||
},
|
},
|
||||||
oneditprepare: function() {
|
oneditprepare: function() {
|
||||||
|
if (this.property === undefined) {
|
||||||
|
$("#node-input-property").val("payload");
|
||||||
|
}
|
||||||
|
if (this.property === undefined) {
|
||||||
|
$("#node-input-propertyOut").val("payload");
|
||||||
|
}
|
||||||
|
$("#node-input-property").typedInput({default:'msg',types:['msg']});
|
||||||
|
$("#node-input-propertyOut").typedInput({default:'msg',types:['msg']});
|
||||||
|
|
||||||
if (this.hdrout === false) { this.hdrout = "none"; $("#node-input-hdrout").val("none"); }
|
if (this.hdrout === false) { this.hdrout = "none"; $("#node-input-hdrout").val("none"); }
|
||||||
if (this.hdrout === true) { this.hdrout = "all"; $("#node-input-hdrout").val("all");}
|
if (this.hdrout === true) { this.hdrout = "all"; $("#node-input-hdrout").val("all");}
|
||||||
if (this.strings === undefined) { this.strings = true; $("#node-input-strings").prop('checked', true); }
|
if (this.strings === undefined) { this.strings = true; $("#node-input-strings").prop('checked', true); }
|
||||||
|
@ -57,7 +57,7 @@
|
|||||||
if (this.property === undefined) {
|
if (this.property === undefined) {
|
||||||
$("#node-input-property").val("payload");
|
$("#node-input-property").val("payload");
|
||||||
}
|
}
|
||||||
if (this.property === undefined) {
|
if (this.propertyOut === undefined) {
|
||||||
$("#node-input-propertyOut").val("payload");
|
$("#node-input-propertyOut").val("payload");
|
||||||
}
|
}
|
||||||
$("#node-input-property").typedInput({default:'msg',types:['msg']});
|
$("#node-input-property").typedInput({default:'msg',types:['msg']});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user