Quellcode durchsuchen

Update path showing

yeungalan vor 6 Jahren
Ursprung
Commit
56d21dbf35
1 geänderte Dateien mit 5 neuen und 1 gelöschten Zeilen
  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 + "/";