Преглед изворни кода

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