Kaynağa Gözat

Update path showing

yeungalan 6 yıl önce
ebeveyn
işleme
56d21dbf35
1 değiştirilmiş dosya ile 5 ekleme ve 1 silme
  1. 5 1
      7-Zip File Manager/CopyNMoveUI.php

+ 5 - 1
7-Zip File Manager/CopyNMoveUI.php

@@ -89,7 +89,11 @@ $( "#path" ).keyup(function() {
 	if(f_dir == ""){
 		displayPath = "...";
 	}else{
-		displayPath = f_dir;
+	    if(f_method == "e"){
+		    displayPath = f_dir.replace(/^.*[\\\/]/, '');
+	    }else{
+	        displayPath = f_dir;
+	    }
 	}
 	if(path.slice(-1) !== "/"){
 		path = path + "/";