diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/common/panels.js b/packages/node_modules/@node-red/editor-client/src/js/ui/common/panels.js index 3ccaa6b43..b4819e278 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/common/panels.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/common/panels.js @@ -21,6 +21,7 @@ RED.panels = (function() { var container = options.container || $("#"+options.id); var children = container.children(); if (children.length !== 2) { + console.log(options.id); throw new Error("Container must have exactly two children"); } var vertical = (!options.dir || options.dir === "vertical"); diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/editor.js b/packages/node_modules/@node-red/editor-client/src/js/ui/editor.js index 5db58a6dd..a36ffcbdb 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/editor.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/editor.js @@ -720,8 +720,8 @@ RED.editor = (function() { var inputPlaceholder = node._def.inputLabels?RED._("editor.defaultLabel"):RED._("editor.noDefaultLabel"); var outputPlaceholder = node._def.outputLabels?RED._("editor.defaultLabel"):RED._("editor.noDefaultLabel"); - var inputsDiv = $("#node-label-form-inputs"); - var outputsDiv = $("#node-label-form-outputs"); + var inputsDiv = $("#red-ui-editor-node-label-form-inputs"); + var outputsDiv = $("#red-ui-editor-node-label-form-outputs"); var inputCount; if (node.type === 'subflow') { @@ -732,7 +732,7 @@ RED.editor = (function() { var children = inputsDiv.children(); var childCount = children.length; - if (childCount === 1 && $(children[0]).hasClass('node-label-form-none')) { + if (childCount === 1 && $(children[0]).hasClass('red-ui-editor-node-label-form-none')) { childCount--; } @@ -768,14 +768,14 @@ RED.editor = (function() { var keys = Object.keys(outputMap); children = outputsDiv.children(); childCount = children.length; - if (childCount === 1 && $(children[0]).hasClass('node-label-form-none')) { + if (childCount === 1 && $(children[0]).hasClass('red-ui-editor-node-label-form-none')) { childCount--; } outputCount = 0; var rows = []; keys.forEach(function(p) { - var row = $("#node-label-form-output-"+p).parent(); + var row = $("#red-ui-editor-node-label-form-output-"+p).parent(); if (row.length === 0 && outputMap[p] !== -1) { if (childCount === 0) { $(children[0]).remove(); @@ -807,7 +807,7 @@ RED.editor = (function() { } children = outputsDiv.children(); childCount = children.length; - if (childCount === 1 && $(children[0]).hasClass('node-label-form-none')) { + if (childCount === 1 && $(children[0]).hasClass('red-ui-editor-node-label-form-none')) { childCount--; } if (childCount < outputCount) { @@ -828,13 +828,13 @@ RED.editor = (function() { } } function buildLabelRow(type, index, value, placeHolder) { - var result = $('
',{class:"node-label-form-row"}); + var result = $('
',{class:"red-ui-editor-node-label-form-row"}); if (type === undefined) { $('').text(RED._("editor.noDefaultLabel")).appendTo(result); - result.addClass("node-label-form-none"); + result.addClass("red-ui-editor-node-label-form-none"); } else { result.addClass(""); - var id = "node-label-form-"+type+"-"+index; + var id = "red-ui-editor-node-label-form-"+type+"-"+index; $('