小编Naj*_*bet的帖子

拖放Jstree确认

我开发了一个出现的确认警报 do you want to move this file or folder ?

如果我点击no:它返回默认文件夹.

如果yes它会转到新文件夹.

所以我的问题是当我拖放父文件夹时会出现确认消息,如果我点击no动作没有停止,那就意味着该文件夹将在新文件夹下移动

例如我有:

  • 目录root1
    • 文件夹1
      • Child1
  • 根-2

在我jstree我有 目录root1根-2这是父节点所以,当我移动节点child1到根-2它工作正常.但当我将ROOT2移动到ROOT1时,它点击时并没有停止运动no

这是我的代码:

// html demo
$('#tree').jstree({
"core" : {
"animation" : 0,
"check_callback" : true,
"data" : [
{ "id" : "ajson1", "parent" : "#", "text" : "Simple root node" },
{ "id" : "ajson11", "parent" : "#", "text" : "Simple root 1 node" },
{ …
Run Code Online (Sandbox Code Playgroud)

jquery drag-and-drop jstree

4
推荐指数
1
解决办法
5917
查看次数

标签 统计

drag-and-drop ×1

jquery ×1

jstree ×1