diff options
-rw-r--r-- | loggedin.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/loggedin.js b/loggedin.js index de0f915..8de7c2b 100644 --- a/loggedin.js +++ b/loggedin.js @@ -104,7 +104,7 @@ function openfile_nondir() { xhr.open('POST', '/php/readfile.php', true); - focus.filecontents.innerText = "Loading..."; + focus.filecontents.innerText = ""; focus.filecontents.style.display = 'block'; focus.foldercontents.style.display = 'none'; @@ -457,6 +457,10 @@ function add_file_visuals(fileview) { } visuals.ondragstart = (e) => { + if (focus.pwd.length == 0 && fileview.filename == "trash") { + e.preventDefault(); + return; + } begin_drag_fileview(e, fileview); e.preventDefault(); }; |