diff options
author | adam <adam@> | 2021-02-13 12:13:29 +0200 |
---|---|---|
committer | adam <adam@> | 2021-02-13 12:13:29 +0200 |
commit | e4c0f4eeaa3f1a0707d6bf668619bb48b77c43ce (patch) | |
tree | 93d9168517f1eaf3867be7addcead34505b1be5f /loggedin.js | |
parent | 232ec00948655b8c68035368400b0a79c101976b (diff) | |
parent | bb9d4f024e7cfa1c79fc1e4118774fa4ea2fd3bd (diff) | |
download | fileup-e4c0f4eeaa3f1a0707d6bf668619bb48b77c43ce.tar.gz |
Merge https://github.com/alexvitkov/india
Diffstat (limited to 'loggedin.js')
-rw-r--r-- | loggedin.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/loggedin.js b/loggedin.js index 324a18a..8681dba 100644 --- a/loggedin.js +++ b/loggedin.js @@ -134,15 +134,14 @@ function delete_file(filename) { } function rename_file(filename) { - var file_full_path = path_combine(get_path(), filename); - var new_name = prompt(`Rename ${filename} to`, filename); if (!new_name) return; var data = new FormData(); - data.append('path', file_full_path); - data.append('new_name', new_name); + data.append('folder', get_path()); + data.append('old_filename', filename); + data.append('new_filename', new_name); var xhr = new XMLHttpRequest(); xhr.open('POST', '/php/rename.php', true); |