diff --git a/editor/js/ui/editor.js b/editor/js/ui/editor.js index 085313aa8..8997d0839 100644 --- a/editor/js/ui/editor.js +++ b/editor/js/ui/editor.js @@ -978,6 +978,8 @@ RED.editor = (function() { if (outputsChanged) { changed = true; } + } else { + newValue = parseInt(newValue); } } if (editing_node[d] != newValue) { diff --git a/nodes/core/core/80-function.html b/nodes/core/core/80-function.html index b64df3dce..e05a55b9c 100644 --- a/nodes/core/core/80-function.html +++ b/nodes/core/core/80-function.html @@ -70,6 +70,9 @@ label: function() { return this.name; }, + labelStyle: function() { + return this.name?"node_label_italic":""; + }, oneditprepare: function() { var that = this; $( "#node-input-outputs" ).spinner({ diff --git a/nodes/core/core/80-template.html b/nodes/core/core/80-template.html index 0768a9d17..d2c41419f 100644 --- a/nodes/core/core/80-template.html +++ b/nodes/core/core/80-template.html @@ -101,6 +101,9 @@ label: function() { return this.name; }, + labelStyle: function() { + return this.name?"node_label_italic":""; + }, oneditprepare: function() { var that = this; if (!this.fieldType) { diff --git a/nodes/core/io/21-httprequest.js b/nodes/core/io/21-httprequest.js index f7e873c99..5d6fea41b 100644 --- a/nodes/core/io/21-httprequest.js +++ b/nodes/core/io/21-httprequest.js @@ -135,7 +135,7 @@ module.exports = function(RED) { } var payload = null; - if (typeof msg.payload !== "undefined" && (method == "POST" || method == "PUT" || method == "PATCH" ) ) { + if (typeof msg.payload !== "undefined") { if (typeof msg.payload === "string" || Buffer.isBuffer(msg.payload)) { payload = msg.payload; } else if (typeof msg.payload == "number") { diff --git a/nodes/core/logic/10-switch.html b/nodes/core/logic/10-switch.html index cbb0b491e..553bdbbf6 100644 --- a/nodes/core/logic/10-switch.html +++ b/nodes/core/logic/10-switch.html @@ -114,6 +114,9 @@ label: function() { return this.name||"switch"; }, + labelStyle: function() { + return this.name?"node_label_italic":""; + }, oneditprepare: function() { var node = this; var previousValueType = {value:"prev",label:this._("inject.previous"),hasValue:false};