1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Merge branch 'master' into 0.18

This commit is contained in:
Nick O'Leary 2018-01-11 21:20:51 +00:00
commit 9ba011003a
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
5 changed files with 12 additions and 1 deletions

View File

@ -978,6 +978,8 @@ RED.editor = (function() {
if (outputsChanged) { if (outputsChanged) {
changed = true; changed = true;
} }
} else {
newValue = parseInt(newValue);
} }
} }
if (editing_node[d] != newValue) { if (editing_node[d] != newValue) {

View File

@ -70,6 +70,9 @@
label: function() { label: function() {
return this.name; return this.name;
}, },
labelStyle: function() {
return this.name?"node_label_italic":"";
},
oneditprepare: function() { oneditprepare: function() {
var that = this; var that = this;
$( "#node-input-outputs" ).spinner({ $( "#node-input-outputs" ).spinner({

View File

@ -101,6 +101,9 @@
label: function() { label: function() {
return this.name; return this.name;
}, },
labelStyle: function() {
return this.name?"node_label_italic":"";
},
oneditprepare: function() { oneditprepare: function() {
var that = this; var that = this;
if (!this.fieldType) { if (!this.fieldType) {

View File

@ -135,7 +135,7 @@ module.exports = function(RED) {
} }
var payload = null; 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)) { if (typeof msg.payload === "string" || Buffer.isBuffer(msg.payload)) {
payload = msg.payload; payload = msg.payload;
} else if (typeof msg.payload == "number") { } else if (typeof msg.payload == "number") {

View File

@ -114,6 +114,9 @@
label: function() { label: function() {
return this.name||"switch"; return this.name||"switch";
}, },
labelStyle: function() {
return this.name?"node_label_italic":"";
},
oneditprepare: function() { oneditprepare: function() {
var node = this; var node = this;
var previousValueType = {value:"prev",label:this._("inject.previous"),hasValue:false}; var previousValueType = {value:"prev",label:this._("inject.previous"),hasValue:false};