Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/88.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
jquery UI可拖动辅助程序:克隆是否从原始文件中删除可拖动文件?_Jquery_Jquery Ui Tabs_Jquery Ui Draggable - Fatal编程技术网

jquery UI可拖动辅助程序:克隆是否从原始文件中删除可拖动文件?

jquery UI可拖动辅助程序:克隆是否从原始文件中删除可拖动文件?,jquery,jquery-ui-tabs,jquery-ui-draggable,Jquery,Jquery Ui Tabs,Jquery Ui Draggable,我使用的draggable具有以下选项: $("#accountDetailPanel .draggable").draggable({ helper: 'clone', appendTo: 'body', cursor: 'move', revert: 'invalid' }); $(".accountPod").droppable({ accept: '.draggable' }); 加载时,我将Dragable应用于jquery UI选项

我使用的draggable具有以下选项:

$("#accountDetailPanel .draggable").draggable({
    helper: 'clone',
    appendTo: 'body',
    cursor: 'move',
    revert: 'invalid'
});         
$(".accountPod").droppable({ accept: '.draggable' });
加载时,我将Dragable应用于jquery UI选项卡的第二个选项卡的内容:

问题只是第一次拖动效果很好。当我没有将可拖动设备放入可接受的可拖放设备时,pod会恢复,但我无法再进行拖动。无论如何,被拖拽的吊舱都会失去拖拽能力

在尝试对draggable init应用stop函数时,使我走上了一条需要嵌套无限.draggable调用的道路

全文如下:

$(document).ready(function(){

  $("#tabs").tabs();

  /**
   * Click on account pod -> account detail pane is populated
   *   Inside account detail, tabs pulled dynamically
   *     Installation List - each installation (home) is movable
   */
  $(".accountPod").live("click", function(event){

    var account_id = $(this).attr("id").replace("acct_", "");

    // load user's details into tab panel (replace all tabs)
    $("#accountDetailPanel").load("/accountDetail/" + account_id, function(){

      // post-load of tabs html
      $("#tabs").tabs();

      // init draggables
      $("#accountDetailPanel .draggable").draggable({
        helper: 'clone',
        appendTo: 'body',
        cursor: 'move',
        revert: 'invalid'
      });

      $(".accountPod").droppable({ accept: '.draggable' });

    });

  });

});
因为这个提琴可以工作:我肯定认为它与加载选项卡时.draggable()的动态应用程序有关


非常感谢您的指点

不幸的是,我认为问题在于加载的库。我发现使用jquery1.8.5和jQuery-git.js是有效的。

我认为问题在于加载的库。我发现使用jquery1.8.5和jQuery-git.js是可行的