|
|
@ -687,14 +687,14 @@ JSP.prototype.saveStore = function () { |
|
|
|
|
|
|
|
|
|
|
|
JSP.prototype.handleEvent = function () { |
|
|
|
JSP.prototype.handleEvent = function () { |
|
|
|
this.JspInstance.bind('beforeDrop', function (info) { |
|
|
|
this.JspInstance.bind('beforeDrop', function (info) { |
|
|
|
const sourceId = info.sourceId// 出
|
|
|
|
let sourceId = info['sourceId']// 出
|
|
|
|
const targetId = info.targetId// 入
|
|
|
|
let targetId = info['targetId']// 入
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Recursive search for nodes |
|
|
|
* Recursive search for nodes |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
let recursiveVal |
|
|
|
let recursiveVal |
|
|
|
const recursiveTargetarr = (arr, targetId) => { |
|
|
|
const recursiveTargetarr = (arr, targetId) => { |
|
|
|
for (const i in arr) { |
|
|
|
for (let i in arr) { |
|
|
|
if (arr[i] === targetId) { |
|
|
|
if (arr[i] === targetId) { |
|
|
|
recursiveVal = targetId |
|
|
|
recursiveVal = targetId |
|
|
|
} else { |
|
|
|
} else { |
|
|
|