Added a confirmation prompt if you're leaving a page with something "unfinished"

Deimos
2018-07-08T20:02:51Z

This has been requested a number of times, sorry for all the lost comments in the meantime.

The site should now ask you to confirm if you try to leave a page with an "unfinished" topic, comment, or message. This includes starting to write new ones, but also covers the forms for editing a post. It should only trigger if you actually make any changes, so if you click "Edit" on a comment/topic, but don't edit it at all (or do, and then change the text back to what it was originally), you shouldn't get a confirmation when you leave the page.

Please let me know if you notice any issues or strange behaviors with this.

Comments URL: https://tildes.net/~tildes.official/36v/added_a_confirmation_prompt_if_youre_leaving_a_page_with_something_unfinished

Votes: 63

Comments: 18