mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
parent
ddeacd0f6e
commit
10d4552e27
@ -447,8 +447,9 @@ listing.moveSelected = function (event) {
|
||||
let fileElement = document.getElementById(file),
|
||||
destFolder = event.target.querySelector("p code").innerHTML;
|
||||
|
||||
if(event.srcElement.querySelector("li[aria-selected=true]") != null)
|
||||
destFolder = event.srcElement.querySelector("li[aria-selected=true]").innerHTML;
|
||||
if(event.currentTarget.querySelector("li[aria-selected=true]") != null) {
|
||||
destFolder = event.currentTarget.querySelector("li[aria-selected=true]").dataset.url;
|
||||
}
|
||||
|
||||
let destPath = "/" + destFolder + "/" + fileElement.querySelector(".name").innerHTML;
|
||||
destPath = destPath.replace('//', '/');
|
||||
|
Loading…
Reference in New Issue
Block a user