diff options
author | Alex Vitkov <alexvitkov98@gmail.com> | 2021-02-15 14:47:29 +0200 |
---|---|---|
committer | Alex Vitkov <alexvitkov98@gmail.com> | 2021-02-15 14:47:29 +0200 |
commit | 8b1406ede7389c9e50fa0c095be7a8524d265c8c (patch) | |
tree | 9b2e5304c530b245b220505e87069de4f8cd582a | |
parent | 9ccbde780aceabc8df863e4e1091d1696f0defe3 (diff) | |
download | fileup-8b1406ede7389c9e50fa0c095be7a8524d265c8c.tar.gz |
Text editor only works for files with write permissions
-rw-r--r-- | loggedin.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/loggedin.js b/loggedin.js index 60a7d59..8d9e92f 100644 --- a/loggedin.js +++ b/loggedin.js @@ -348,7 +348,8 @@ function openfile_nondir() { xhr.onload = function () { focus.txt_editor.innerText = xhr.responseText; - focus.txt_editor.contentEditable = "true"; + if (open_file.write_permissions) + focus.txt_editor.contentEditable = "true"; }; } |