16 lines
432 B
JavaScript
16 lines
432 B
JavaScript
function togglePostEdit(id){
|
|
body=document.getElementById("post-body");
|
|
title=document.getElementById("post-title");
|
|
form=document.getElementById("edit-post-body-"+id);
|
|
|
|
body.classList.toggle("d-none");
|
|
title.classList.toggle("d-none");
|
|
form.classList.toggle("d-none");
|
|
|
|
box=document.getElementById("post-edit-box-"+id);
|
|
autoExpand(box);
|
|
markdown(box);
|
|
box=document.getElementById("post-edit-title");
|
|
autoExpand(box);
|
|
};
|