Преглед на файлове

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;
     }