Fix buttons in preview

This commit is contained in:
Daniella / Tove 2022-01-23 06:44:51 +01:00
parent 35f3f1fe84
commit c3f7efa03c

View file

@ -129,10 +129,10 @@
`<textarea name="content" placeholder="So basically, ..." required>${fake ? post.comments[post.comments.length - 1].content.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;") : ''}</textarea><br/><br/><button type="submit" name="fake" value="no">Submit</button> <button type="submit" name="fake" value="yes">Preview</button>` +
`</label></form></div></post><div>`
}
else
else if (!fake)
ret += `<a href="/comment/${postid}/${id}">[Reply]</a> </div>`
}
else
else if (!fake)
ret += `<a href="/post/${id}">[Open]</a></div>`
ret += '</div>'
for(let i = post.comments.length - 1; i >= 0; i--) {