fix move #70
parent
ca54f9dfb1
commit
d8f0dc20a4
|
@ -447,8 +447,9 @@ listing.moveSelected = function (event) {
|
||||||
let fileElement = document.getElementById(file),
|
let fileElement = document.getElementById(file),
|
||||||
destFolder = event.target.querySelector("p code").innerHTML;
|
destFolder = event.target.querySelector("p code").innerHTML;
|
||||||
|
|
||||||
if(event.srcElement.querySelector("li[aria-selected=true]") != null)
|
if(event.currentTarget.querySelector("li[aria-selected=true]") != null) {
|
||||||
destFolder = event.srcElement.querySelector("li[aria-selected=true]").innerHTML;
|
destFolder = event.currentTarget.querySelector("li[aria-selected=true]").dataset.url;
|
||||||
|
}
|
||||||
|
|
||||||
let destPath = "/" + destFolder + "/" + fileElement.querySelector(".name").innerHTML;
|
let destPath = "/" + destFolder + "/" + fileElement.querySelector(".name").innerHTML;
|
||||||
destPath = destPath.replace('//', '/');
|
destPath = destPath.replace('//', '/');
|
||||||
|
|
Loading…
Reference in New Issue