From 256e5360d47592b4f79ef3be38be9516fd76d689 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Wed, 6 Dec 2017 22:47:13 +0000 Subject: [PATCH 1/3] ensure core node labels are italic when named (#1498) --- nodes/core/core/80-function.html | 3 +++ nodes/core/core/80-template.html | 3 +++ nodes/core/logic/10-switch.html | 3 +++ 3 files changed, 9 insertions(+) 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 94fcd453f..f586bb62a 100644 --- a/nodes/core/core/80-template.html +++ b/nodes/core/core/80-template.html @@ -97,6 +97,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/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}; From 5f4f6e37b5c25778661b425dd73ab32dc49df700 Mon Sep 17 00:00:00 2001 From: Hugobox Date: Fri, 22 Dec 2017 05:16:39 -0500 Subject: [PATCH 2/3] HTTP REQUEST: Adding PROPPATCH and PROPFIND http methods (#1531) * HTTP REQUEST: Adding PROPPATCH and PROPFIND http methods * Removed method check --- nodes/core/io/21-httprequest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") { From 915d73e6f22550fe69244958beb264f64115638e Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Fri, 22 Dec 2017 21:14:47 +0000 Subject: [PATCH 3/3] Ensure node.outputs remains a number type Closes #1532 --- editor/js/ui/editor.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editor/js/ui/editor.js b/editor/js/ui/editor.js index a0fffc1e9..25252ed27 100644 --- a/editor/js/ui/editor.js +++ b/editor/js/ui/editor.js @@ -882,6 +882,8 @@ RED.editor = (function() { if (outputsChanged) { changed = true; } + } else { + newValue = parseInt(newValue); } } if (editing_node[d] != newValue) {