mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
still flattening wrinkles in change node...
(I blame the Xmas "spirit" ;-)
This commit is contained in:
parent
dafb2f1d38
commit
e0921f84c4
@ -76,6 +76,7 @@
|
|||||||
return this.name ? "node_label_italic" : "";
|
return this.name ? "node_label_italic" : "";
|
||||||
},
|
},
|
||||||
oneditprepare: function() {
|
oneditprepare: function() {
|
||||||
|
if (this.reg === null) { $("#node-input-reg").selected(true); }
|
||||||
$("#node-input-action").change( function() {
|
$("#node-input-action").change( function() {
|
||||||
var a = $("#node-input-action").val();
|
var a = $("#node-input-action").val();
|
||||||
if (a === "replace") {
|
if (a === "replace") {
|
||||||
|
@ -22,7 +22,7 @@ function ChangeNode(n) {
|
|||||||
this.property = n.property || "";
|
this.property = n.property || "";
|
||||||
this.from = n.from || " ";
|
this.from = n.from || " ";
|
||||||
this.to = n.to || " ";
|
this.to = n.to || " ";
|
||||||
this.reg = n.reg;
|
this.reg = (n.reg === null || n.reg);
|
||||||
var node = this;
|
var node = this;
|
||||||
|
|
||||||
var makeNew = function( stem, path, value ) {
|
var makeNew = function( stem, path, value ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user