瀏覽代碼

1.修复标签页拖动bug

ZY 8 年之前
父節點
當前提交
d0433bec8f
共有 1 個文件被更改,包括 5 次插入 和 1 次删除
  1. 5 1
      resources/app/public/js/browser.js

+ 5 - 1
resources/app/public/js/browser.js

@@ -866,8 +866,12 @@ US_Browser.HeadBind=function(){
     }
     US_Browser.tagdrop = function(e) {
         e.preventDefault();
-        if (tagEL != this) {
+        if (tagEL.nextSibling == this) {
+            US_Browser.NavContainer.insertBefore(this,tagEL);
+        } else if (tagEL.previousSibling == this) {
             US_Browser.NavContainer.insertBefore(tagEL,this);
+        } else if (tagEL != this) {
+            US_Browser.NavContainer.insertBefore(tagEL,this.nextSibling);
         }
         tagELf=false;
     }