Discard post confirmation closer to editor
NodeBB_Lover last edited by
Seems disjointed to have to confirm [Discard] post so far away.
I used bootbox to render those confirm modals.
Could easily remove that and change the "discard" button so that when clicked, it gets replaced with [No | Yes]
In addition I think it may be a bit confusing when receiving that message when you're discarding a post that you're editing
lol @psychobunny -- that as a half-hearted attempt at adding the post discard confirmation.
I just added a check to calculate the textarea's value length, but it should really be a flag that is toggled
Fixed it up now, so it doesn't show up on edit (unless something changed)