1
0
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:
Dave C-J 2013-12-24 17:01:53 +00:00
parent dafb2f1d38
commit e0921f84c4
2 changed files with 2 additions and 1 deletions

View File

@ -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") {

View File

@ -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 ) {