Use current file name as default in move promp.

This commit is contained in:
Sam Greytalon 2023-06-16 21:50:01 -07:00
parent 6fb5e59499
commit ef386ff8d4

View file

@ -37,7 +37,7 @@ function file_move(el) {
var dest_path = form.dest_path;
var name = get_file_name_from_url(form.target_path.value);
var input = prompt("Enter a new name or path for '" + name + "':");
var input = prompt("Enter a new name or path for '" + name + "':", name);
if (input === null || input === '') {
return;
}