Prevent from leaving the page when in edit mode for issue, wiki or other
|Category:||UI||Estimated time:||2.00 hours|
I think Redmine should ask the user if he really wants to navigate away from the current page,
a bit like GMail does when you are editing something.
It is really easy to loose the focus on the textarea and to hit backspace and it is really painful to end up on the previous page after spending one hour editing something.
onUnload('alert("Do you really want to navigate away from this page, all your changes will be lost")')
on the <body> element of the page when in edit.
Another step further could be continuous saving of the current work, but I guess it is going to be a lot of work because all the drafts should be persisted and displayed somewhere.