set the href for edit links in the directory list

This commit is contained in:
foamyguy 2022-07-15 19:56:29 -05:00
parent 584e27139e
commit 541e448100

View File

@ -91,6 +91,9 @@ async function refresh_list() {
delete_button.disabled = !editable;
delete_button.onclick = del;
let edit_url = new URL("/edit/#" + f.name, url_base);
let edit_link = clone.querySelector(".edit_link");
edit_link.href = edit_url
new_children.push(clone);
}