aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Vitkov <alexvitkov98@gmail.com>2021-02-15 12:00:14 +0200
committerAlex Vitkov <alexvitkov98@gmail.com>2021-02-15 12:00:14 +0200
commitb2c74f742213acb57b6d17f0a3a64c53a44f3f55 (patch)
tree841e66fea2fe17b40e28df10132c7cd41c3b1184
parentd0f5a17fbf8e41c6d1553dc93b8be5db804388e2 (diff)
downloadfileup-b2c74f742213acb57b6d17f0a3a64c53a44f3f55.tar.gz
asdf
-rw-r--r--loggedin.js9
-rw-r--r--loggedin.php2
2 files changed, 6 insertions, 5 deletions
diff --git a/loggedin.js b/loggedin.js
index 8c923b4..bc18ef4 100644
--- a/loggedin.js
+++ b/loggedin.js
@@ -22,6 +22,7 @@ class Window {
this.pwd = pwd; // pwd = [ "Folder1", "Folder2" ] means the current directory of that window is /Folder1/Folder2
this.visuals = null; // The DOM object
this.h2 = null; // The titlebar of the window
+ this.fileview = null;
}
}
@@ -343,11 +344,11 @@ function openfile_nondir() {
focus.filecontents.classList.remove('imgview');
focus.filecontents.style.backgroundImage = "unset";
- var pre = mk(focus.filecontents, 'pre');
+ wnd.pre = mk(focus.filecontents, 'pre');
xhr.onload = function () {
- pre.innerText = xhr.responseText;
- pre.contentEditable = "true";
+ wnd.pre.innerText = xhr.responseText;
+ wnd.pre.contentEditable = "true";
};
}
@@ -860,7 +861,7 @@ function make_window(pwd) {
mk(h3, 'div', 'separator');
let replace_btn = mk(h3, 'button');
- replace_btn.innerText = "Save";
+ replace_btn.innerText = "Save Changes";
replace_btn.onclick = () => { alert("No implemento"); }
mk(h3, 'div', 'separator');
diff --git a/loggedin.php b/loggedin.php
index 1cd34c8..47bdfeb 100644
--- a/loggedin.php
+++ b/loggedin.php
@@ -4,7 +4,7 @@
<form id="upload_form" style="display:none;" action="php/upload.php" method="post" enctype="multipart/form-data">
<input type="file" name="the_file" id="the_file">
<input type="hidden" name="filename" id="filename">
- <input type="hidden" name="override" id="override_input">
+ <input type="hidden" name="overwrite" id="override_input">
<input type="hidden" name="parent_directory" id="upload_parent_directory">
</form>