瀏覽代碼

Added import functionality of Arduino code (without disturbing whitespaces and empty lines)

Small correction
dds
Manfred Müller-Späth 9 年之前
父節點
當前提交
0a43f66de2
共有 1 個檔案被更改,包括 3 行新增2 行删除
  1. +3
    -2
      gui/red/ui/view.js

+ 3
- 2
gui/red/ui/view.js 查看文件

@@ -1476,6 +1476,8 @@ RED.view = (function() {
*/
function importNodes(newNodesStr,touchImport) {
var createNewIds = true;
// TODO: solve this more elegant as the system expects
if ($("#node-input-arduino").prop('checked') === true) {
newNodesStr = RED.nodes.cppToJSON(newNodesStr);
@@ -1488,8 +1490,7 @@ RED.view = (function() {
}

try {
var createNewIds = true;
var result = RED.nodes.import(newNodesStr,true);
var result = RED.nodes.import(newNodesStr,createNewIds);
if (result) {
var new_nodes = result[0];
var new_links = result[1];

Loading…
取消
儲存