forked from rDrama/rDrama
1
0
Fork 0

fix post editing

master
Aevann 2023-10-01 17:23:29 +03:00
parent 3b7d070f21
commit 519ebb3fb4
1 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
function togglePostEdit(id){
body = document.getElementById("post-body");
title = document.getElementById("post-title");
form = document.getElementById("edit-post-body-"+id);
function togglePostEdit(id) {
const body = document.getElementById("post-body");
const title = document.getElementById("post-title");
const form = document.getElementById("edit-post-body-"+id);
body.classList.toggle("d-none");
title.classList.toggle("d-none");